Re: [xep-support] Page count module 4

From: Jirka Kosek <>
Date: Wed Nov 21 2007 - 13:49:04 PST

G. Ken Holman wrote:

> If anyone else can think of a different approach, I'd love to hear it.
> This comes up in publications that are saddle-stitched where pages need
> to be grouped in 16 or 32 pages. What I wanted from the committee was
> the ability to loop through a page subsequence ... because of the
> saddle-stitching the margins need to be minutely adjusted on each page.

I have been using two-pass approach for this problem. On the first run I
format document as is to PDF. During the second pass, XSLT
transformation uses itext library to get number of pages in PDF from the
first pass and appropriate number of blank pages is then added at the
end of FO file.


P.S. XSL-WG is now collecting requirements for XSL-FO 2.0 (see It is time
to raise you requirement once again -- I think that it is not currently
captured in requirements document.

  Jirka Kosek      e-mail:
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service

Received on Wed Nov 21 14:21:50 2007

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2007 - 14:21:51 PST