469,594 Members | 2,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,594 developers. It's quick & easy.

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

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

Oct 17 '05 #1
1 2699
Someone gave me the answer at a Yahoo group. You can read it on:
http://groups.yahoo.com/group/XSL-FO/message/6867

Michel

Oct 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Buchleitner Martin | last post: by
3 posts views Thread by will | last post: by
3 posts views Thread by Mikael Petterson | last post: by
4 posts views Thread by Jean-Christophe Michel | last post: by
7 posts views Thread by Andy Fish | last post: by
4 posts views Thread by Pat Turner | last post: by
11 posts views Thread by Rolf Barbakken | last post: by
4 posts views Thread by Christofer Dutz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.