<?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>
You can find this example in examples/chapter1.xsl