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

using all page masters in a sequence

From: Paul Tyson <phtyson@sbcglobal.net>
Date: Fri, 14 Feb 2014 16:34:27 -0600
To: www-xsl-fo@w3.org
Message-Id: <1392417267.5906.20.camel@tristan>
Is it possible to force a page-sequence to consume all the
non-repeatable page-masters listed in its reference

I can have 1-n page-masters, but there might only be enough content to
generate m pages. I want to use up all the page-masters (with blank flow
content) for pages m+1 through n.

More than n pages will use the repeatable-page-master at the end of the

So I might have:

<fo:page-sequence-master master-name="the-page-sequence">
  <fo:single-page-master-reference master-reference="master-1"/>
  <fo:single-page-master-reference master-reference="master-2"/>
  <fo:single-page-master-reference master-reference="master-3"/>
  <!-- through master-n -->
  <fo:repeatable-page-master-reference master-name="master-0"/>

And then:

<fo:page-sequence master-reference="the-page-sequence">
    <!-- long or short content -->

I am almost resigned to estimating vertical space required to fill n
pages and adding that to the flow content, but thought I would ask to
see if I am missing something, perhaps involving
fo:conditional-page-master-reference and force-page-count.

(Yes, this would be better handled using independent region-bodies with
separate content flows, but FOP does not support that yet.)

Thanks and regards,
Received on Friday, 14 February 2014 22:34:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:37 UTC