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

M

Michel

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,743
Latest member
WoodrowMea

Latest Threads

Top