RE: page-sequence-master

"Giannetti, Fabio" <[email protected]> Tue, 17 Dec 2002 09:59:00 -0000
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
Let me better understand, you want to have the TOC, that is composed by 1 or
more pages using a the first page layout, then you want to render the rest
of the document using the main page layout.
If my assumptions are right modify your FO in this way:
<fo:page-sequence-master master-name="toc">
   <fo:repeatable-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>

keeping the page sequence as it was.
Now you will have as many TOC pages as necessary and then your content.
Hope I have got it ! :-))
Fabio

> -----Original Message-----
> From: Alberto Bolchini [mailto:[email protected]]
> Sent: Tuesday, December 17, 2002 9:51 AM
> To: Giannetti, Fabio; [email protected]
> Subject: RE: page-sequence-master
> 
> 
> ><fo:page-sequence-master master-name="toc">
> >   <fo:single-page-master-reference master-reference="first"/>
> ></fo:page-sequence-master>
> How does this tell that the "flow that exceeds the first 
> page" should be
> formatted differently?
> 
> this is what I get running it as suggested
> mhm...
> java.lang.NullPointerException
>         at
> org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(Pa
> geSequence
> .java:527)
>         at
> org.apache.fop.fo.pagination.PageSequence.makePage(PageSequenc
> e.java:335
> )
>         at
> org.apache.fop.fo.pagination.PageSequence.format(PageSequence.
> java:267)
>