cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Expressions based on page count

Highlighted
Level 1

Expressions based on page count

I'm currently working on a stylesheet for a manual.

In this case I must see to it so that the inside of the cover pages dont contain any information at all (the cover will be printed 4+0).

This is easy for page 2 since you can define "Start new: Odd page" for the following page set which then will begin on page 3 and leave page 2 empty. But i dont know how to do this with the second to last page. My thought was to create a xpath-expression that based on if the page count was odd or even would add one or two empty pages before the last page.

Is there a way to calculate and use page count in xpath-exressions?

Is there some other way to solve this?

Tags (3)
3 REPLIES 3

Re: Expressions based on page count

Sounds like you need a blank-page pageset that gets used for the back of the cover page.

Re: Expressions based on page count

Yes, I did that and it works. Thanks for your reply!

Re: Expressions based on page count

The process of generate PDF from XML is:

XML + XSLT => XSL-FO => PDF

To generate page number in the output PDF, <foSmiley Tongueage-number/> will be used. This will be interprate by the XSL-FO engine when XSL-FO => PDF.

When you run your XSLT, it is to generate XSL-FO ( XML + XSLT => XSL-FO) . You will not able to know page information during this process.

Jingjun