W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2002

RE: page-sequence-master

From: Alberto Bolchini <albertob@engitel.com>
Date: Tue, 17 Dec 2002 11:14:17 +0100
Message-ID: <B5F82C9C6AF01A449981BCDCA232D66939F5A1@shark.etweb.it>
To: "Giannetti, Fabio" <Fabio_Giannetti@hplb.hpl.hp.com>, <www-xsl-fo@w3.org>

I try to recap:

a. document should have a first page layout different from the rest of
the document
b. on the first page, a TOC exists -- plus other things (the footer hack
you suggested works perfectly)
c. TOC might span more than one page => what gets laid-out on the second
page needs to have "rest-of-doc" layout, and not the "first-page"
layout.

I presume that given the two physical layouts:
  <fo:simple-page-master master-name="A" ...
  <fo:simple-page-master master-name="B" ... 

and a single sequence master:
  <fo:page-sequence-master master-name="content">
    <fo:single-page-master-reference master-name="A"/>
    <fo:repeatable-page-master-reference master-name="B"/>
  </fo:page-sequence-master>

content specified as:
  <fo:page-sequence master-name="content" initial-page-number="1" ... 
    <!-- TOC -->
  </fo:page-sequence>
  <fo:page-sequence master-name="B" ... 
    <!-- DOC --> 
  </fo:page-sequence>
everything should work.

I tried out the following sequence masters as well:

(1) <fo:page-sequence-master master-name="content">
      <fo:repeatable-page-master-reference master-name="A"
maximum-repeats="1"/>
      <fo:repeatable-page-master-reference master-name="B"/>
    </fo:page-sequence-master>

(2) <fo:page-sequence-master master-name="content">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference page-position="first"
master-name="A"/>
        <fo:conditional-page-master-reference page-position="rest"
master-name="B"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>

but none of them seems to work as I expect.
Received on Tuesday, 17 December 2002 05:16:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT