Subject:conditional page body with XSL-FO Author:Jerry Janofsky Date:21 Aug 2006 06:37 PM
Does anyone know if it is possible to have a conditional page body depending on whether or not the page is even or odd? I understand how to have conditional page-before and page-after (static content) styles. But I also want the body text (flow) to be formatted differently depending on whether or not the page is even or odd.
I attempted this by creating "body-even" and "body-odd" in the even and odd master sets. See below.
<fo:layout-master-set>
<!-- Even pages - 5.5 in x 8.5 in size -->
<fo:simple-page-master master-name="even" page-height="8.5in" page-width="5.5in>
<fo:region-body region-name="body-even" border="1pt solid black" display-align="before" margin-left="0.3125in" margin-right="0.75in" margin-top="0.5in" margin-bottom="0.5in"/>
<fo:region-before region-name="even-before" border="1pt solid black" display-align="before" extent="0.3125in"/>
<fo:region-after region-name="even-after" border="1pt solid black" display-align="after" extent="0.3125in"/>
</fo:simple-page-master>
Subject:conditional page body with XSL-FO Author:Ivan Pedruzzi Date:24 Aug 2006 11:43 AM
Hi Jerry,
My understanding is that you can create different layouts for odd/even pages and creates static text areas using the fo:static-conten; but the fo:flow for the region "body" is managed by the formatter that spans the content across pages.