1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| <xsl:template match="*" mode="commonTopicProcessing">
<xsl:if test="empty(ancestor::*[contains(@class, ' topic/topic ')])">
<fo:marker marker-class-name="current-topic-number">
<xsl:variable name="topicref" select="key('map-id', ancestor-or-self::*[contains(@class, ' topic/topic ')][1]/@id)"/>
<xsl:for-each select="$topicref">
<xsl:apply-templates select="." mode="topicTitleNumber"/>
</xsl:for-each>
</fo:marker>
</xsl:if>
<xsl:apply-templates select="*[contains(@class, ' topic/title ')]"/>
<xsl:apply-templates select="*[contains(@class, ' topic/prolog ')]"/>
<xsl:apply-templates select="*[not(contains(@class, ' topic/title ')) and
not(contains(@class, ' topic/prolog ')) and
not(contains(@class, ' topic/topic '))]"/>
<xsl:apply-templates select="*[contains(@class,' topic/topic ')]"/>
<xsl:apply-templates select="." mode="topicEpilog"/>
</xsl:template> |
Partager