XSL-FO - How to use page-number-citation twice?

Discussion in 'XML' started by Michel, Oct 17, 2005.

  1. Michel

    Michel Guest

    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
    Michel, Oct 17, 2005
    #1
    1. Advertising

  2. Michel

    Michel Guest

    Michel, Oct 17, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    3,583
    A. Bolmarcich
    May 27, 2005
  2. Replies:
    0
    Views:
    517
  3. Paddy
    Replies:
    1
    Views:
    384
    Paddy
    May 9, 2008
  4. Ralph Amissah
    Replies:
    0
    Views:
    152
    Ralph Amissah
    Jan 10, 2005
  5. Mark Livingstone

    Academic citation of Python

    Mark Livingstone, Jun 16, 2012, in forum: Python
    Replies:
    11
    Views:
    959
    Ethan Furman
    Jun 18, 2012
Loading...

Share This Page