[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [xsl-fo] Do a foreach for the number of pages

Subject: Re: [xsl-fo] Do a foreach for the number of pages
From: Marc <Marc.Liste@xxxxxxx>
Date: Mon, 19 Dec 2011 22:13:40 +0100
Re:  [xsl-fo] Do a foreach for the number of pages
I look for the sample on the FOP and I find this http://xmlgraphics.apache.org/fop/fo.html

Le 19/12/2011 22:11, Marc a icrit :
If you use FOP from Java you can use the fop.getResults().getPageCount()
to know the number of pages at a first pass and after you send this
number to the second pass as parameter.


Le 19/12/2011 18:58, Colin DeClue a icrit :

So, I was wondering if it was possible to do a foreach for the number
of pages in the document, minus a number provided in the xml.
Basically, I have a flow that I want to end on the last page, rather
than start on the first page. If I could add page breaks for how many
pages the document is minus how many pages the flow is going to take
up, I could easily do this. It does, however, seem like something that
could easily be impossible, since the for-each could impact the number
of pages, and what would the processor do then?

Colin DeCLue

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.