Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:template match="*[contains(@class,' concept/concept ')]/*[contains(@class,' topic/title ')]" mode="processTopicTitle">
- <xsl:variable name="level" select="count(ancestor::*[contains(@class,' topic/topic ')])"/>
- <xsl:variable name="attrSet1">
- <xsl:call-template name="createTopicAttrsName">
- <xsl:with-param name="theCounter" select="$level"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="attrSet2" select="concat($attrSet1, '__content')"/>
- <fo:block>
- <xsl:call-template name="commonattributes"/>
- <xsl:call-template name="processAttrSetReflection">
- <xsl:with-param name="attrSet" select="$attrSet1"/>
- <xsl:with-param name="path" select="'../../cfg/fo/attrs/commons-attr.xsl'"/>
- </xsl:call-template>
- <fo:block xsl:use-attribute-sets="steve">
- <xsl:call-template name="processAttrSetReflection">
- <xsl:with-param name="attrSet" select="$attrSet2"/>
- <xsl:with-param name="path" select="'../../cfg/fo/attrs/commons-attr.xsl'"/>
- </xsl:call-template>
- <xsl:if test="$level = 1">
- <fo:marker marker-class-name="current-header">
- <xsl:call-template name="getTitle"/>
- </fo:marker>
- </xsl:if>
- <xsl:if test="$level = 2">
- <fo:marker marker-class-name="current-h2">
- <xsl:call-template name="getTitle"/>
- </fo:marker>
- </xsl:if>
- <fo:inline id="{parent::node()/@id}"/>
- <fo:inline>
- <xsl:attribute name="id">
- <xsl:call-template name="generate-toc-id">
- <xsl:with-param name="element" select=".."/>
- </xsl:call-template>
- </xsl:attribute>
- </fo:inline>
- <!-- added by William on 2009-07-02 for indexterm bug:2815485 start-->
- <xsl:call-template name="pullPrologIndexTerms"/>
- <!-- added by William on 2009-07-02 for indexterm bug:2815485 end-->
- <xsl:call-template name="getTitle"/>
- </fo:block>
- </fo:block>
- </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement