1<xsl:stylesheet 2 version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns:fo="http://www.w3.org/1999/XSL/Format"> 5 6<xsl:template match="H4"> 7 <fo:block> 8 <xsl:number level="any" from="H1" count="H2"/> 9 <xsl:text>.</xsl:text> 10 <xsl:number level="any" from="H2" count="H3"/> 11 <xsl:text>.</xsl:text> 12 <xsl:number level="any" from="H3" count="H4"/> 13 <xsl:text> </xsl:text> 14 <xsl:apply-templates/> 15 </fo:block> 16</xsl:template> 17 18</xsl:stylesheet> 19