Detecting last page of real content

[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 UTC