1<xsl:stylesheet version="1.0" 2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:fo="http://www.w3.org/1999/XSL/Format"> 4<xsl:template match="chapter"> 5 <fo:block> 6 <xsl:apply-templates/> 7 </fo:block> 8</xsl:template> 9<xsl:template match="doc"> 10<doc> 11 <xsl:apply-templates/> 12</doc> 13</xsl:template> 14</xsl:stylesheet> 15