1<xsl:stylesheet version="1.0" 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns="http://www.w3.org/TR/xhtml1/strict"> 4 5<xsl:strip-space elements="doc chapter section"/> 6<xsl:output 7 method="xml" 8 indent="yes" 9 encoding="iso-8859-1" 10/> 11 12<xsl:template match="doc"> 13<html> 14 <head> 15 <title> 16 <xsl:value-of select="title"/> 17 </title> 18 </head> 19 <body> 20 <xsl:apply-templates/> 21 </body> 22</html> 23</xsl:template> 24 25<xsl:template match="doc/title"> 26<h1> 27 <xsl:apply-templates/> 28</h1> 29</xsl:template> 30 31<xsl:template match="chapter/title"> 32<h2> 33 <xsl:apply-templates/> 34</h2> 35</xsl:template> 36 37<xsl:template match="section/title"> 38<h3> 39 <xsl:apply-templates/> 40</h3> 41</xsl:template> 42 43<xsl:template match="para"> 44<p> 45 <xsl:apply-templates/> 46</p> 47</xsl:template> 48 49<xsl:template match="note"> 50<p class="note"> 51 <b>NOTE: </b> 52 <xsl:apply-templates/> 53</p> 54</xsl:template> 55 56<xsl:template match="emph"> 57<em> 58 <xsl:apply-templates/> 59</em> 60</xsl:template> 61 62</xsl:stylesheet> 63