Subject: Re: [xsl] [xsl-fo] Do a foreach for the number of pages|
From: Marc <Marc.Liste@xxxxxxx>
Date: Mon, 19 Dec 2011 22:13:40 +0100
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 :Hey,
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?
Thanks, Colin DeCLue