Loading ...
Sorry, an error occurred while loading the content.

Page numbers in TOC for sub-sections

Expand Messages
  • Joe D. Williams
    The code below produces a page number in the TOC for each section/title. I have tried several methods of producing page numbers for subsections, but with no
    Message 1 of 1 , Apr 12, 2002
    • 0 Attachment
      The code below produces a page number in the TOC for each section/title.
       
      I have tried several methods of producing page numbers for subsections, but with no success.
       
      Suggestions? Pointers to sample code?
       
      Thanks.
       
      Joe
       
      ==================

      <fo:table-body>

      <fo:table-row space-before.optimum="3pt">

      <fo:table-cell>

      <fo:block font-size="18pt" font-weight="bold" font-family="Helvetica" text-align="start" background-color="#CCCCCC" padding="2pt">

      <xsl:text>Topic</xsl:text>

      </fo:block>

      </fo:table-cell>

      <fo:table-cell>

      <fo:block font-size="18pt" font-weight="bold" font-family="Helvetica" text-align="justify" background-color="#CCCCCC" padding="2pt">

      <xsl:text>Page</xsl:text>

      </fo:block>

      </fo:table-cell>

      </fo:table-row>

      <xsl:for-each select="//section/title">

      <fo:table-row>

      <fo:table-cell>

      <fo:block font-size="12pt" font-weight="normal" font-family="Helvetica" text-align="start" padding="2pt">

      <xsl:value-of select="."/>

      <fo:leader leader-alignment="reference-area" leader-pattern="dots"

      leader-length.minimum="0.2in" leader-length.maximum="3in"/>

      </fo:block>

      </fo:table-cell>

      <fo:table-cell>

      <fo:block font-size="12pt" font-weight="normal" font-family="Helvetica" text-align-last="end" padding="2pt">

      <fo:leader leader-alignment="reference-area" leader-pattern="dots"

      leader-length.minimum="0.2in" leader-length.maximum="3in"/>

      <fo:page-number-citation>

      <xsl:attribute name="ref-id">

      <xsl:value-of select="generate-id(.)"/>

      </xsl:attribute>

      </fo:page-number-citation>

      </fo:block>

      </fo:table-cell>

      </fo:table-row>

      </xsl:for-each>

       

      </fo:table-body>

    Your message has been successfully submitted and would be delivered to recipients shortly.