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

RE: page-sequence-master

From: Giannetti, Fabio <Fabio_Giannetti@hplb.hpl.hp.com>
Date: Tue, 17 Dec 2002 09:06:25 -0000
Message-ID: <5E13A1874524D411A876006008CD059F03E61FDD@0-mail-1.hpl.hp.com>
To: www-xsl-fo@w3.org

Hi Alberto,
	I suggest you to use an approach similar to this one:

<fo:page-sequence-master master-name="toc">
   <fo:single-page-master-reference master-reference="first"/>
</fo:page-sequence-master>
<fo:page-sequence-master master-name="content">
   <fo:repeatable-page-master-reference master-reference="main"/>
</fo:page-sequence-master>

and then an fo:page-sequence as this:

<fo:page-sequence  master-reference="toc">
   <fo:flow flow-name="xsl-region-body">
          TOC 
   </fo:flow>
</fo:page-sequence>
<fo:page-sequence  master-reference="content">
   <fo:flow flow-name="xsl-region-body">
          content
   </fo:flow>
</fo:page-sequence>

Hope this helps,
Fabio


> -----Original Message-----
> From: Alberto Bolchini [mailto:albertob@engitel.com]
> Sent: Monday, December 16, 2002 8:51 AM
> To: www-xsl-fo@w3.org
> Subject: page-sequence-master
> 
> 
> 
> Hi,
> 
> I am trying to obtain a document with a first page template and a
> "rest-of-doc" template. On this forst page, a TOC and other infos
> appear, and eventually the TOC might take a second page, 
> having to have
> the "rest-of-doc" template (same doc as the thread
> http://lists.w3.org/Archives/Public/www-xsl-fo/2002Dec/0051.html)
> 
> I specified the following page-sequence-master (actually using FOP
> 0.20.1 so master-name => master-reference), expecting it to let my TOC
> be layouted with the "main" template instead of the "first" 
> whenever it
> overflew the first page, though what happens is I get an 
> "empty" layout
> (neither master-name="first" nor master-name="main").
> 
> What am I missing?
> 
> <fo:page-sequence-master master-name="content">
>   <fo:single-page-master-reference master-name="first"/>
>   <fo:repeatable-page-master-reference master-name="main"/>
> </fo:page-sequence-master>
> 
> 
> Thanks,
> 
> Alberto
> 
Received on Tuesday, 17 December 2002 04:06:39 GMT

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