Листинг #4
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="guide">
<h1><xsl:value-of select="title"/></h1>
<i><xsl:value-of select="notes"/></i>
</xsl:for-each>
<xsl:for-each select="guide/chapter">
<h3><xsl:value-of select="title"/></h3>
<i><xsl:value-of select="introduction"/></i>
</xsl:for-each>
<xsl:for-each select="guide/chapter/item">
<p><b><xsl:value-of select="key"/></b> -
<xsl:value-of select="description"/></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>