RE: page-sequence-master

Ok, now I have got it !
Try something like this, I used and works with FOP 0.20.4

<fo:page-sequence-master master-name="content">
    <fo:repeatable-page-master-alternatives>
       <fo:conditional-page-master-reference master-reference="first"
page-position="first"/>
       <fo:conditional-page-master-reference master-reference="main"
page-position="rest"/>
    </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

...
<fo:page-sequence  master-reference="content">
    <fo:flow  flow-name="xsl-region-body">
       TOC & rest fo the document
    </fo:flow>
</fo:page-sequence>

Fabio

> -----Original Message-----
> From: Alberto Bolchini [mailto:albertob@engitel.com]
> Sent: Tuesday, December 17, 2002 10:14 AM
> To: Giannetti, Fabio; www-xsl-fo@w3.org
> Subject: RE: page-sequence-master
> 
> 
> 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:22:33 UTC