473,480 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2962
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1901
by: Buchleitner Martin | last post by:
Hi! I got another problem parsing my XML document: <document> <paragraph> <style val=listing/> <text>listing #1 text</text> </paragraph> <paragraph>
3
2059
by: will | last post by:
HOpe you can help with this... I have the following xml document... <?xml version="1.0" ?> <file> <header>some data</header> <detail> some more data</detail> <footer> gdshada </footer>
3
4454
by: Mikael Petterson | last post by:
Hi, I have the following in my xml file: <attribute name="bbBusState"> I need to generate to the following: public static final String BB_BUS_STATE_ATTR_TYPE.
4
2281
by: Jean-Christophe Michel | last post by:
Hi, In a complex merging of two (non ordered) xml files i need to keep track of the elements of the second tree that were already merged with first tree, to copy only unused elements at the end....
7
3096
by: Andy Fish | last post by:
Hi, I'm stuck with an XSL problem - can anyone give me any hints? I have some XML with nested formatting tags like this: <text> this is plain <bold> this is bold
8
2324
by: Sebastian Kerekes | last post by:
Greetings, I'm developing an application that supports multiple languages. In my XSL I use variables to place the text where it belongs to. At the top of the document I include those variables -...
4
3429
by: Pat Turner | last post by:
Hi, I have some XML like this: <family> <person name="bob"> <father ref="../../person" /> </person> <person name="charlie"> <child ref="../../person" />
11
1893
by: Rolf Barbakken | last post by:
I have an xml with records like this one: <a:response> <a:href>http://server/public/sol/comp/1049306.eml</a:href> <a:propstat> <a:status>HTTP/1.1 200 OK</a:status> <a:prop>...
6
2133
by: Mark Miller | last post by:
I have a scheduled job that uses different XSL templates to transform XML and save it to disk. I am having problems with the code below. The problem shows up on both my development machine (Windows...
4
4314
by: Christofer Dutz | last post by:
Hi, I am having a small problem, that is driving me nuts. My application reads some Xml and runs 2 Xsl Transformations to generate HTML. As soon as my second XSL introduces some <br/tags, the...
0
6918
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3008
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.