XSL-FO specific page count

Here should go questions about transforming XML with XSLT and FOP.
HVV
Posts: 18
Joined: Fri Dec 02, 2016 4:02 pm

XSL-FO specific page count

Post by HVV »

Hi all,

I have an XSL-FO stylesheet to transform XML documents to PDF using Oxygen 18.1 and the Apache FOP processor. The output PDF should always have a page count that is divisible by 4, so that page count mod 4 = 0.

The stylesheet has 3 page-sequence elements: one for frontmatter, one for the body, and one for backmatter. If the total number of pages of those sequences combined does not equal 0 on mod 4, then blank pages should be added after the last sequence until it does.

My question is: is this even possible using Apache FOP? I believe the force-page-count attribute is meant for this kind of requirement, but it seems to be limited to an odd or even number of pages, not an amount of pages.

Regards,
Hugo
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSL-FO specific page count

Post by Radu »

Hi Hugo,

Maybe you can try to register and ask on the DITA Users List, I do not have an answer to your question and on the users list there are lots of people working with XSL-FO based customizations.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
HVV
Posts: 18
Joined: Fri Dec 02, 2016 4:02 pm

Re: XSL-FO specific page count

Post by HVV »

Thanks for the tip, Radu!
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Re: XSL-FO specific page count

Post by xephon »

stefan-jung.org – Your DITA/DITA-OT XML consultant
Post Reply