Last Page Conundrum

I probably need a vacation, but this occurred to me a couple of days ago, and I'm wondering what the consensus is. :-)

Take a typical page-sequence-master (PSM) with a repeatable-page-master-alternatives. Key feature here is that one condition is for page-position='last'. FOP doesn't do page-position='last' yet, I might add (it's the only pagination thing we don't, I believe), FWIW.

Assume that we generate all pages, 1..n, with no use of the page-master for the last page. That is, how can one use the PM for the last page until you've done the first pass to figure out what the last page is? Having done that, we backtrack to the content start for the last page, and re-format using the last-page PM. But _this_ PM does not allow all _that_ remaining content into a last page, and therefore forces another.

Or does it? For surely you see where this is heading. :-) Because you now have to re-apply the page-position='rest" PM, because the page is no longer the last page...when will it stop?

I haven't actually worked up a decent solution for this one. I don't find any particularly useful guidance in the spec. Any thoughts?

Regards,
Arved Sandstrom

Received on Monday, 12 February 2001 05:42:32 UTC