to the main page... about these slides...

Structure of a style sheet

An XSL stylesheet is itself an XML document:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                xmlns="...">
   .
   .
   .
  <xsl:template match="pattern">   \
    template                        >
a template rule
  </xsl:template>                  /
   .
   .                  
<- other top-level elements
   .
</xsl:stylesheet>

The namespace http://www.w3.org/1999/XSL/Transform is used to recognize the XSL elements; elements from other namespaces constitute literal result fragments.