W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

[FO] Page Number positions

From: Tanzila Mohammad <tmohammad@entier-solutions.com>
Date: Wed, 14 Nov 2001 16:57:46 -0000
To: <www-xsl-fo@w3.org>
Message-ID: <EBEKJPOMOCIKIIPPEBHBAEGFCHAA.tmohammad@entier-solutions.com>
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>

  <fo:page-sequence master-name="contents" initial-page-number="43">

      <fo:static-content flow-name="xsl-region-before"
                   font-size="8px"
                   font-family="Courier"
                   >

	<fo:block font-family="Courier" font-size="10px">
			<fo:page-number/>
       </fo:block>

......

The aim is that every rightPage should have the even page number in the
right-hand position on the page.

While every leftPage should have the odd page number in the left-hand
position.

BUT instead the page number appears in the left-hand position regardless -
Any suggestions?

Regards.

Tanz
Received on Wednesday, 14 November 2001 11:58:14 GMT

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