Input XSLT Output HTML

Basic HTML Page

XSLT can output HTML just as easily as XML!

The first example focuses on generating the basic HTML page. For content, it just lists the XML document stats. (Which is not entirely useless!)

Notice that the input XML contains a stylesheet directive:

<?xml-stylesheet href="eg-303.xsl" type="text/xsl"?>

This reference to the XSLT from EG303 means that applications that open this XML file should use the stylesheet for rendering it. (Assuming the application in question knows about stylesheets and plans to render the XML in some fashion.)

You can try this by using the [Open in New Window] in the Input window. (Note that you can view and save most of the tutorial examples using this link!)