1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<xsl:template mode="toc" match="A/B/C">
<xsl:choose>
<xsl:when test="lib">
<fo:block>
<fo:list-block>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block space-before="0cm">
<xsl:variable name="nb-lib" select="count(preceding-sibling::lib)"/>
<xsl:variable name="nbr" select="$nb-prcitem + 1"/>
<xsl:number format="(1) " value="$nbr"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates mode="toc" select="lib" />
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
</xsl:when>
</xsl:choose> |