freecoding.school100% FREE · NO SIGNUP
The Old NetISSUE #20 of 60

xml stylesheets · linking xslt

Pixel PeteVSQuirks Mode
Pixel Pete saysBecause XHTML is XML, you can transform it with XSLT and style it with XML stylesheets.

XML's tooling applies: an <?xml-stylesheet?> processing instruction can attach an XSLT transform that rewrites the document tree, or a CSS file. XSLT (Extensible Stylesheet Language Transformations) converts one XML shape into another — powerful for data-to-markup pipelines, though heavy and rarely used for everyday pages.

Power-ups you unlock

Quirks Mode attacks — common mistakes

Boss battleExplain what an XSLT transform does to an XHTML document.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>&lt;?xml-stylesheet type="text/xsl" href="transform.xsl"?&gt;
XSLT: input XML tree → output XML/HTML tree</pre></body></html>
▶ Open the interactive comic issue
‹ Xhtml 5 · The Polyglot SubsetCharacter Entities In Xhtml ›