W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2012

Detecting last page of real content

From: Earl Hood <earlhood@gmail.com>
Date: Sun, 5 Feb 2012 15:20:10 -0600
Message-ID: <CANDwYvfUYJ=kOODCEstpqPQi+ngQhZsEYnbW7J4qHEp9+1cbGg@mail.gmail.com>
To: www-xsl-fo@w3.org
[Sorry if this is a dupe, seems mailing list does not like
 when Sender field is not the same as From/Reply-to.  List
 software should handle this properly.]

I have an odd-even page layout where the sequence is configured
to end on even.  Hence, a blank page will be inserted if the
flow content ends on odd.

The problem I have is detecting the case when the flow content
ends on odd since I am required to indicate that the next page
is blank.  For example, if the next page is blank, the previous
page should have something like the following where the page
number is printed:

 3/4 blank

This indicates we are on page 3, and page 4 is blank.

I've tried to use the "last" for page-position in
conditional-page-master-reference, but it appears that "last"
also includes the generated blank page vs the last page
of flowed content.

Is there a way with standard XSL-FO to get the effect I
want?

--ewh
Received on Monday, 6 February 2012 02:52:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 February 2012 02:52:08 GMT