Tutorial: The identity stylesheet.<br/><span class='r'>With answers</span>
Zoo tutorials: [ SQL | Java | Linux | XML ]

A Gentle Introduction to xml

The identity stylesheet.
With answers

Question 1: Identity of http://www.w3.org/XML/

The page at http://www.w3.org/XML/ is (as you would expect) perfect XML. The style sheet shown preserves all the important features of this page. Insert the following template - this will ensure that the base element appears in the head element. It should allow your browser to find the images and stylesheets for this page. (untick "show as text")
  <xsl:template match="htm:head">
   <xsl:element name="{name()}">
    <base href="http://www.w3.org/XML"/>
    <xsl:apply-templates select="@*"/>