W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

Odd and Even pages problem in XSL:FO

From: ahmed abdelhameed <aabdelhameed@future-soft.com>
Date: Mon, 10 Jun 2002 11:02:27 -0400 (EDT)
Message-ID: <001301c21091$2cd4ef90$0100a8c0@test.org>
To: <www-xsl-fo@w3.org>
Hi All,
I'm just startlearning xsl and
I have the following code:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <fo:layout-master-set>
		<fo:simple-page-master master-name="rightPage"
			page-height="29.7cm"
			page-width="21cm"
			margin-left="1.3cm"
			margin-right="1.3cm"
			margin-top="0.2cm"
			margin-bottom="1.3cm">
			<fo:region-before extent="6.5cm"/>
			<fo:region-after extent="1.3cm"/>
			<fo:region-body
				margin-top="6.5cm"
				margin-bottom="1.3cm"/>
		</fo:simple-page-master>

                 <fo:simple-page-master master-name="leftPage"
			page-height="29.7cm"
			page-width="21cm"
			margin-left="1.3cm"
			margin-right="1.3cm"
			margin-top="0.2cm"
			margin-bottom="1.3cm">
			<fo:region-before extent="6.5cm"/>
			<fo:region-after extent="1.3cm"/>
			<fo:region-body
				margin-top="6.5cm"
				margin-bottom="1.3cm" />
		</fo:simple-page-master>

     <!-- Set up the sequence of pages -->
		<fo:page-sequence-master master-name="contents">
			<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference
					master-name="rightPage"
					odd-or-even="odd"
                                        text-align="end"/>
                                <fo:conditional-page-master-reference
					master-name="leftPage"
					odd-or-even="even"
                                        text-align="start"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>

      </fo:layout-master-set>

And i need to create in the pdf odd and even pages where:
1- Odd pages contains table with gray background and page number.
2- Even pages without tables and with blue background and white color text.

So, please i need the exact code for this settings.

Thank you for your support
Please, confirm asap.
Ahmed Abdelhameed
Localization Engineer
Future-Soft
Received on Monday, 10 June 2002 12:20:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT