Answer 8: Axes and Node Tests

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <html>
        <head>
           <title>Titles</title>
        </head>
        <ul>
          <xsl:apply-templates select="descendant::title"/>
         </ul>
    </html>
  </xsl:template>

  <xsl:template match="title">
    <li><xsl:value-of select="."/></li>
  </xsl:template>
  
</xsl:stylesheet>
View Transformed Document in Browser
Previous | Next | Top | Cafe con Leche

Copyright 2002, 2003 Elliotte Rusty Harold
Elliotte Rusty Harold
Last Modified November 18, 2002