Subject: [xsl] Alternate page-sequences From: "Roxana Constandes" <Roxana.Constandes@xxxxxxxxxxx> Date: Tue, 22 Apr 2003 10:25:13 -0400 |
Hi All! I have to create a report that has diferrent flows on odd and even pages. I am trying to create two page sequences and alternate them. Here is a stylesheet (simplified): <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="5mm" margin-bottom="5mm" margin-left="15mm" margin-right="5mm" master-name="OddPageMaster"> <fo:region-body margin-top="1cm" margin-bottom="2cm"/> <fo:region-before extent="1cm"/> <fo:region-after extent="2cm"/> </fo:simple-page-master> <fo:simple-page-master page-height="297mm" page-width="210mm" margin-top="5mm" margin-bottom="5mm" margin-left="15mm" margin-right="5mm" master-name="EvenPageMaster"> <fo:region-body margin-top="4cm" margin-bottom="2cm"/> <fo:region-before extent="4cm"/> <fo:region-after extent="2cm"/> </fo:simple-page-master> <fo:page-sequence-master master-name="PageMaster"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="OddPageMaster" page-position="any" odd-or-even="odd" /> <fo:conditional-page-master-reference master-reference="EvenPageMaster" page-position="any" odd-or-even="even" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="OddPageMaster"> <fo:flow flow-name="xsl-region-body"> <xsl:for-each select="......."> <xsl:for-each select="......"> <fo:block>odd</fo:block> </xsl:for-each> </xsl:for-each> </fo:flow> </fo:page-sequence> <fo:page-sequence master-reference="EvenPageMaster"> <fo:flow flow-name="xsl-region-body"> <xsl:for-each select="......."> <xsl:for-each select="......"> <fo:block>even</fo:block> </xsl:for-each> </xsl:for-each> </fo:flow> </fo:page-sequence> </fo:root> But it doesn't work. First, I get all pages for OddPageMaster (on both odd and even pages) and then I get the output for EvenPageMaster. What I want is to alternate them. Any suggestion will be very appreciated. Thanks, Roxana XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Splitting the string of a, Betty Harvey | Thread | Re: [xsl] Alternate page-sequences, G. Ken Holman |
[xsl] Splitting the string of an XM, Gan Uesli Starling | Date | [xsl] using fn:max with Saxon 7.4 ?, malcolm macaulay |
Month |