[xsl] Double side document with legal information on the back

Subject: [xsl] Double side document with legal information on the back
From: steve_cornet@xxxxxxxxxxxx
Date: Tue, 11 Mar 2003 14:15:34 +0100
I would like to create a double side document where the "even" page will
always contain some legal information (E.g.: to print an invoice). On my
odd page, I have a header, a footer and a body which contains a table with
several rows. When the number of rows is too high, FOP decide to generate a
break and continue on the next page. My problem is that I would like to
insert my legal information after this break (every "even" page must
contain legal information)...Is there any way to do this in fo or do I need
to handle this in xsl?

My fo document looks like this:


<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
   <fo:layout-master-set>

      <fo:simple-page-master margin-right="0.7cm" margin-left="0.7cm"
margin-bottom="0.5cm"
          margin-top="0.75cm" page-width="21cm" page-height="29.7cm"
master-name="recto">
         <fo:region-before region-name="xsl-region-before" extent
="11.5cm"/>
         <fo:region-body region-name="xsl-region-body" margin-top="11.5cm"
margin-bottom="4cm"/>
         <fo:region-after region-name="xsl-region-after" extent="4cm"/>
      </fo:simple-page-master>

      <fo:simple-page-master margin-right="0.7cm" margin-left="0.7cm"
margin-bottom="0.5cm"
          margin-top="0.75cm" page-width="21cm" page-height="29.7cm"
master-name="verso">
         <fo:region-body/>
      </fo:simple-page-master>

      <fo:page-sequence-master master-name="all-pages">
         <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference master-reference="recto"
odd-or-even="odd"/>
            <fo:conditional-page-master-reference master-reference="verso"
odd-or-even="even"/>
         </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>

   </fo:layout-master-set>


   <fo:page-sequence master-reference="all-pages">

      <fo:static-content text-align="start" font-family="sans-serif"
font-size="8pt" flow-name="xsl-region-before">
      ...
      </fo:static-content>

      <fo:static-content text-align="start" font-family="sans-serif"
font-size="8pt" flow-name="xsl-region-after">
      ...
      </fo:static-content>

      <fo:flow text-align="start" font-family="sans-serif" font-size="8pt"
flow-name="xsl-region-body">

         <fo:table border-top-color="black" border-top-style="solid"
border-top-width=".2mm"
             border-bottom-color="black" border-bottom-style="solid"
border-bottom-width=".2mm"
             table-omit-header-at-break="false" table-omit-footer-at-break
="false" table-layout="fixed">
         ....
         </fo:table>

      </fo:flow>
   </fo:page-sequence>


   <fo:page-sequence master-reference="all-pages">
      <fo:flow text-align="start" font-family="sans-serif" font-size="8pt"
flow-name="xsl-region-body">
      ...
      </fo:flow>
   </fo:page-sequence>

</fo:root>


Thanks
Steve



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread