Reputation: 21
I am having an issue regarding the page number in the XSLT. I am taking in an XML and generating the PDF using XSLT. My requirement is to have sequenced page numbers on the alternate pages.
For Example: First page will have page number 1, then the next page (that is the second page) will not count any page number, and then on the third page the page number will be 2 and so on.
Currently I am taking a default page number value : <fo:page-number>
Please help as due to variable assigning constraint in XSLT i can't build up a logic for my requirement.
Thank you.
Upvotes: 2
Views: 173
Reputation: 161
Assuming you are using xslfo, you can create two simple-page-master templates, one for even page and other for odd page. In the page-sequence for even page, add a block with an id. Now use this id in page-number-citation.
Upvotes: 1