XSLT on congress.gov

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Very little: it is trivia about XSLT usage on congress.gov, but it signals the WHATWG proposal to remove XSLT from the HTML spec may affect sites still relying on it.

Read this as

Simon Willison noticed that the official US Congress website, congress.gov, publishes bill text as XML files that web browsers automatically turn into readable pages using an old web technology called XSLT. He discovered this through a proposal to remove XSLT support from the HTML standard, the rulebook for how the web works. The stylesheets used include change notes dating back to 2004. It is a niche but interesting example of old web technology still running a major government site.

Congress.gov serves legislative bill documents (e.g. H. R. 3617, the 2021 marijuana reform bill) as raw XML rendered in-browser via XSLT stylesheets with maintenance comments dating to 2004. A WHATWG proposal to strip XSLT from the HTML spec, which surfaced this fact, suggests browser vendors may eventually drop the feature, creating a modest compliance risk for government sites relying on it. No costs, timelines or decisions are reported.

congress.gov serves bills as XML with an <?xml-stylesheet type="text/xsl" href="billres.xsl"?> processing instruction and a bill.dtd DOCTYPE, rendered client-side via XSLT into XHTML. Simon Willison traced the pipeline to billres-details.xsl, whose changelog comment extends back to 2004 (gist archived). The finding came from whatwg/html pull request 11563 proposing removal of XSLT references from the HTML spec.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

congress.gov XSLT WHATWG H. R. 3617 billres-details.xsl HTML spec

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading