5. Stylesheet for the XHTML Document Module

xsl:stylesheet id="stylesheet" exclude-result-prefixes="x2 lit" version="1.0" xml:lang="en"

document
html
head
title
body
xsl:template match="/" id="document"
  <html>
    xsl:choose
      xsl:when test="x2:html"
        xsl:apply-templates
      
      xsl:when test="x2:section"
        xsl:call-template name="head"
        xsl:call-template name="body"
      
    
  </html>
xsl:template match="x2:html" id="html"
  xsl:apply-templates
xsl:template match="x2:title" id="title"
  <title>
    xsl:apply-templates
  </title>
xsl:template match="x2:body" id="body" name="body"
  <body>
    <div id="navigation">
      xsl:call-template name="display-navigation"
    </div>
    <div id="body">
      <a id="top" />
      xsl:apply-templates
      xsl:call-template name="display-footnotes"
    </div>
  </body>