LJ Archive

Listing 1. example1.xsl

<xsl:stylesheet
     xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
     version = "1.0">
  <xsl:output method="html"/>

  <xsl:template match = "/">
     <html>
         <body>
             <xsl:apply-templates select = "datum"/>
         </body>
     </html>
  </xsl:template>

  <xsl:template match = "datum">
     <h1>
         <xsl:value-of select = "."/>
     </h1>
  </xsl:template>
</xsl:stylesheet>
LJ Archive