Advertisement
Guest User

Untitled

a guest
Feb 25th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. <xsl:template match="*[contains(@class,' concept/concept ')]/*[contains(@class,' topic/title ')]" mode="processTopicTitle">
  2.  
  3. <xsl:variable name="level" select="count(ancestor::*[contains(@class,' topic/topic ')])"/>
  4. <xsl:variable name="attrSet1">
  5. <xsl:call-template name="createTopicAttrsName">
  6. <xsl:with-param name="theCounter" select="$level"/>
  7. </xsl:call-template>
  8. </xsl:variable>
  9. <xsl:variable name="attrSet2" select="concat($attrSet1, '__content')"/>
  10. <fo:block>
  11. <xsl:call-template name="commonattributes"/>
  12. <xsl:call-template name="processAttrSetReflection">
  13. <xsl:with-param name="attrSet" select="$attrSet1"/>
  14. <xsl:with-param name="path" select="'../../cfg/fo/attrs/commons-attr.xsl'"/>
  15. </xsl:call-template>
  16. <fo:block xsl:use-attribute-sets="steve">
  17. <xsl:call-template name="processAttrSetReflection">
  18. <xsl:with-param name="attrSet" select="$attrSet2"/>
  19. <xsl:with-param name="path" select="'../../cfg/fo/attrs/commons-attr.xsl'"/>
  20. </xsl:call-template>
  21. <xsl:if test="$level = 1">
  22. <fo:marker marker-class-name="current-header">
  23. <xsl:call-template name="getTitle"/>
  24. </fo:marker>
  25. </xsl:if>
  26. <xsl:if test="$level = 2">
  27. <fo:marker marker-class-name="current-h2">
  28. <xsl:call-template name="getTitle"/>
  29. </fo:marker>
  30. </xsl:if>
  31. <fo:inline id="{parent::node()/@id}"/>
  32. <fo:inline>
  33. <xsl:attribute name="id">
  34. <xsl:call-template name="generate-toc-id">
  35. <xsl:with-param name="element" select=".."/>
  36. </xsl:call-template>
  37. </xsl:attribute>
  38. </fo:inline>
  39. <!-- added by William on 2009-07-02 for indexterm bug:2815485 start-->
  40. <xsl:call-template name="pullPrologIndexTerms"/>
  41. <!-- added by William on 2009-07-02 for indexterm bug:2815485 end-->
  42. <xsl:call-template name="getTitle"/>
  43. </fo:block>
  44. </fo:block>
  45. </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement