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

6864How to use page-number-citation twice?

Expand Messages
  • michel_versteeg
    Oct 17, 2005
    • 0 Attachment
      Hi all,

      This is my first post, so I am very new at this. I am trying to use
      page-number-citation twice in my code, but the second time it just
      shows '0'. The output is in pdf format and I am using Antenna XSL
      formatter V3. This is what I have sofar:

      <fo:page-sequence master-reference="frame-pages" force-page-
      count="even">
      <fo:flow flow-name="xsl-region-body">
      <xsl:apply-templates />
      <xsl:for-each select="/Package/PackageBody">
      <xsl:call-template name="individual-data"/>
      </xsl:for-each>
      </fo:flow>
      </fo:page-sequence>

      <xsl:template name="list-a">
      <fo:table width="100%">
      <fo:table-body>
      <xsl:for-each select="Package">
      <fo:table-row>
      <fo:table-cell>
      <fo:block font-size="6pt">
      <fo:page-number-citation ref-id="{generate-id(.)}" />
      </fo:block>
      </fo:table-cell>
      </fo:table-row>
      </xsl:for-each>
      </fo:table-body>
      </fo:table>
      </xsl:template>

      <xsl:template match="list-b">
      <fo:table width="100%">
      <fo:table-body>
      <xsl:for-each select="key('funds-by-category', CategoryName)">
      <fo:table-row>
      <fo:table-cell>
      <fo:block font-size="6pt">
      <fo:page-number-citation ref-id="{generate-id(.)}" />
      </fo:block>
      </fo:table-cell>
      </fo:table-row>
      </xsl:for-each>
      </fo:table-body>
      </fo:table>
      </xsl:template>

      <xsl:template name="individual-data">
      <fo:page-sequence master-reference="frame-pages" force-page-
      count="even">
      <fo:flow flow-name="xsl-region-body">
      <fo:block id="{generate-id()}"></fo:block>
      <xsl:call-template name="fss-page">
      <xsl:with-param name="data" select="."/>
      </fo:flow>
      </fo:page-sequence>
      </xsl:template>

      The page numbers in template list-a show correctly, but don't for
      template list-b. Both page-number-citation's refer to the same
      fo:block, which is probably the cause of the problem.

      I tried:

      <fo:page-number-citation ref-id="{generate-id(aaaa)}" /> in template
      list-a
      <fo:page-number-citation ref-id="{generate-id(bbbb)}" /> in template
      list-b
      <fo:block id="{generate-id(aaaa)}"></fo:block><fo:block
      id="{generate-id(bbbb)}"></fo:block> in template individual-data

      This results in just 0's for the page-number-citation's.

      Can anyone give me tips how to solve this?

      Thanks a lot.

      Michel
    • Show all 9 messages in this topic