|
next
|
Subject: XSL - FO Page count Author: Zarko Ajdukovic Date: 17 Nov 2006 05:38 AM Originally Posted: 14 Nov 2006 10:38 AM
|
Hello everyone,
as an newbie to the xsl-fo, I came to the following problem:
I generate a PDF document (report) from my application using apache fop-0.20.5 for transformation.
In case of a single report, page counting is pretty much straight-forward like :
"<fo:block text-align="end" xsl:use-attribute-sets="regular">
Page:<fo:page-number/>/<fo:page-number-citation ref-id="last-page"/>"
where "last-page" is defined like :
"<fo:block id="last-page"/>"before the end of the flow.
Specifically, in my application, I also must be able to generate more than one report as a single PDF document.
To do that, I created an XML file containing all reports (their data), as well as corresponding XSLT stylesheet using xsl-fo markup tags.
PROBLEM: I got stuck with the "last-page"!
I need to create single PDF that contains multiple reports EACH having the page count in the form of : page/last-page (1/4, 2/4, 3/4, 4/4, 1/3, 2/3...).
That means that I should work with multiple last-page elements which is not possible. Is there any solution for generating above sequences?
Please, I would appreciate any help with this problem.
P.S. I would also be grateful if someone more experienced could confirm that this is a fop-impossible task.
|
|
|