XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Zarko AjdukovicSubject: 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.

Postnext
Ivan PedruzziSubject: XSL - FO Page count
Author: Ivan Pedruzzi
Date: 17 Nov 2006 05:39 PM

Hi Zarko,

Rather than fighting the auto-numbering why you don't create a master document that points to the sub documents with hyperlinks?

Hope this helps
Ivan Pedruzzi
Stylus Studio Team
http://www.stylusstudio.com/xml_download.html

Posttop
Zarko AjdukovicSubject: XSL - FO Page count
Author: Zarko Ajdukovic
Date: 20 Nov 2006 10:24 AM
Originally Posted: 20 Nov 2006 04:39 AM
Thanks for the tip, but is it possible that way to embed all the documents into the master. I can't rally use hyperlinks because for the end user, it is supposed to be a ready-to-print document.
There is also the thing that those documents are generated dynamically, and are not necesssarily serialized (it is rather an option).

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.