1<?xml version="1.0" encoding="iso-8859-1"?> 2<xsl:stylesheet version="1.1" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 5 <xsl:template match="/"> 6 <html xmlns="http://www.w3.org/1999/xhtml"> 7 <head> 8 <link rel="stylesheet" type="text/css" href="xslt.css" /> 9 <title><xsl:value-of select="/pod/head/title" /></title> 10 </head> 11 <body> 12 <xsl:apply-templates /> 13 </body> 14 </html> 15 </xsl:template> 16 17 <xsl:template match="head/title"> 18 <h1>NAME</h1> 19 <xsl:apply-templates /> 20 </xsl:template> 21 22 <xsl:template match="sect1/title"> 23 <h1><xsl:value-of select="." /></h1> 24 </xsl:template> 25 26 <xsl:template match="sect2/title"> 27 <h2><xsl:value-of select="." /></h2> 28 </xsl:template> 29 30 <xsl:template match="para"> 31 <p><xsl:value-of select="." /></p> 32 </xsl:template> 33 34 <xsl:template match="list"> 35 <ul> 36 <xsl:apply-templates /> 37 </ul> 38 </xsl:template> 39 40 <xsl:template match="item"> 41 <li> 42 <xsl:apply-templates /> 43 </li> 44 </xsl:template> 45 46 <xsl:template match="itemtext"> 47 <b><xsl:value-of select="." /></b> 48 </xsl:template> 49 50 <xsl:template match="verbatim"> 51 <pre> 52 <xsl:value-of select="." /> 53 </pre> 54 </xsl:template> 55</xsl:stylesheet> 56