[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Double side document with legal information on the bac

Subject: Double side document with legal information on the back
From: steve_cornet@xxxxxxxxxxxx
Date: Tue, 11 Mar 2003 14:15:34 +0100
steve cornet
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.