github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-6-.xsl (about)

     1  <?xml version= "1.0"?>
     2  
     3  <xsl:stylesheet version="1.0" 
     4    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     5    xmlns:my="http://my/namespace"
     6    xmlns="http://www.w3.org/1999/xhtml"
     7    exclude-result-prefixes="my">
     8    
     9    <!-- Root Node -->
    10    <xsl:template match="/">
    11      <html>
    12        <head>
    13          <title><xsl:value-of select="my:document/my:name"/></title>
    14        </head>	
    15        <xsl:apply-templates/>
    16      </html>
    17    </xsl:template>
    18    
    19    <!-- Header and Body for the Document -->
    20    <xsl:template match="my:document">
    21      <body>
    22        <h1><xsl:value-of select="my:name"/></h1>
    23        <xsl:apply-templates/>
    24        <hr/>
    25      </body>
    26    </xsl:template>
    27    
    28    <!--Don't display name-->
    29    <xsl:template match="my:name">
    30    </xsl:template>
    31  
    32  </xsl:stylesheet>