Check out http://xmlgraphics.apache.org/fop/fo.html#fo-oddeven
It'll show you how (basically you set up a <fo:page-sequence-master master-name="parallel"/> that contains <fo:repeatable-page-master-alternatives>'s for your left and right hand <fo:simple-page-master> then make your <fo:page-sequence master-reference="parallel"> Cheers Karl -----Original Message----- From: Christiane Fritze [mailto:[EMAIL PROTECTED] Sent: Tuesday, 7 March 2006 3:54 AM To: [email protected] Subject: page sequencing for parallel print Hi all, for a parallel printed edition I need two different transformations of the same xml-document, which is easily made by means of the 'mode' attribute. Parallel printed means that one version of the text has to be on all odd pages, the other version on all even pages (if you need see below). If two <fo:flow>s in <fo:page-sequence>s were allowed, I could have somthing like this: <fo:page-sequence master-reference="allPages" force-page-count="auto" format="1"> > ... <fo:flow flow-name="bodyPageRight"> <xsl:apply-templates mode="right"> </fo flow> <fo:flow flow-name="bodyPageLeft"> <xsl:apply-templates mode="left"> </fo flow> </fo:page-sequence> So I need two <fo:page-sequence>s (for the complete strucure of my fo.xsl see below). But how do I have to handle the <fo:page-sequence-master>s to get an page-alternately rendered text? | page 1 | page 2 | | | | | text version one text | same text version two sa | version one text | vers | me text version two same | | ion one text version | text version two same te | | one text version one | xt version two same text | | text version one text | version two same text ve | | page 3 | page 4 | | | | | version one text vers | rsion two same text vers | | ion one text version | ion two same text versio | | one text version one | n two same text version | | text version one text | two same text version tw | version one text | vers | o same text version two | and so on... I use FOP 0.91 beta. Thank you in advance for any help. -- Christiane -------------------------------------------------- The complete but shortened structure of my fo.xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- some parameters --> <xsl:template match="/"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-selection-strategy="character-by-character"> <fo:layout-master-set> <fo:simple-page-master master-name="pageRight" page-height="{$hoehe}" page-width="{$breite}" margin-top="1cm" margin-bottom="1cm" margin-left="2.5cm" margin-right="2cm"> <fo:region-body margin-top="0.5cm" margin-bottom="0.5cm" column-count="{$Spaltenanzahl}" column-gap="0.7cm" region-name="bodyPageRight"/> <fo:region-before extent="1cm" region-name="oben_rechts"/> <fo:region-after extent="0.5cm" region-name="unten_rechts"/> </fo:simple-page-master> <fo:simple-page-master master-name="pageLeft" page-height="{$hoehe}" page-width="{$breite}" margin-top="1cm" margin-bottom="1cm" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body margin-top="0.5cm" margin-bottom="0.5cm" column-count="2" column-gap="0.7cm" region-name="bodyPageLeft"/> <fo:region-before extent="3cm" region-name="oben_links"/> <fo:region-after extent="0.5cm" region-name="unten_links"/> </fo:simple-page-master> <fo:page-sequence-master master-name="pagesRight"> <!-- ??? --> </fo:page-sequence-master> <fo:page-sequence-master master-name="pagesLeft"> <!-- ??? --> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="pagesRight" force-page-count="auto" format="1"> <fo:static-content flow-name="unten_rechts"> <fo:block space-before="5pt" text-align="right" font-size="{$Schriftgroesse}" font-family="serif"> <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="bodyPageRight" font-size="{$Schriftgroesse}" language="de" text-align="justify" font-family="{$Schriftart}"> <fo:block> <xsl:apply-templates mode="right"/> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-reference="pagesLeft" force-page-count="auto" format="1"> <fo:static-content flow-name="unten_rechts"> <fo:block space-before="5pt" text-align="right" font-size="{$Schriftgroesse}" font-family="serif"> <fo:page-number/> </fo:block> </fo:static-content> <fo:flow flow-name="bodyPageLeft" font-size="{$Schriftgroesse}" language="de" text-align="justify" font-family="{$Schriftart}"> <fo:block> <xsl:apply-templates mode="left"/> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="iconographia" mode="right"> <!-- something to do --> </xsl:template> <xsl:template match="preservation" mode="left"> <!-- something else to do --> </xsl:template> </xsl:stylesheet> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
