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

Alternate page-sequences

Subject: Alternate page-sequences
From: "Roxana Constandes" <Roxana.Constandes@xxxxxxxxxxx>
Date: Tue, 22 Apr 2003 10:25:13 -0400
page sequences
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

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.