xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Steppacher <steppac...@esteam.de>
Subject Re: page-masters for different 1st page
Date Tue, 14 May 2002 08:52:41 GMT
>>From what I can gleam from the examples all this allows me to do is have
> different margins for the first page.  My first page needs to have different
> content in the region-after only for the first page.
> 
> Is there a way of doing this?

You are nearly there... You can name your region-after within the two 
simple-page-masters differently and assign different content to them.

<fo:layout-master-set>
     <fo:simple-page-master page-height="297mm" page-width="210mm"
         margin-top="40mm" margin-bottom="10mm"
         margin-left="25mm" margin-right="25mm"
         master-name="PageMasterOneOne">
         <fo:region-body margin-top="40mm" margin-bottom="45mm"/>
         <fo:region-after extent="40mm" display-align="after"
             region-name="footerTOC1"/>
     </fo:simple-page-master>
     <fo:simple-page-master page-height="297mm" page-width="210mm"
         margin-top="25mm" margin-bottom="10mm"
         margin-left="25mm" margin-right="25mm"
         master-name="PageMasterOneTwo">
         <fo:region-body margin-top="30mm" margin-bottom="25mm"/>
         <fo:region-after extent="20mm" display-align="after"
             region-name="footerTOC2"/>
     </fo:simple-page-master>

     <fo:page-sequence-master master-name="PageMasterOne">
         <fo:repeatable-page-master-alternatives>
             <fo:conditional-page-master-reference
                 master-reference="PageMasterOneOne"
                 page-position="first"/>
             <fo:conditional-page-master-reference
                 master-reference="PageMasterOneTwo"
                 page-position="rest"/>
         </fo:repeatable-page-master-alternatives>
     </fo:page-sequence-master>
<fo:layout-master-set>


<fo:page-sequence master-reference="PageMasterOne">
     <!-- Static content for page 1 -->
     <fo:static-content flow-name="footerTOC1">
         <fo:block>Content of footer for first page.</fo:block>
     </fo:static-content>
     <fo:static-content flow-name="footerTOC2">
         <fo:block>Content of footer for all other pages.</fo:block>
     </fo:static-content>

     <!-- Content for page sequence. -->
     <fo:flow flow-name="xsl-region-body">
         <fo:block>Content of the page sequence.</fo:block>
     </fo:flow>
</fo:page-sequence>


HTH
Ralf


Mime
View raw message