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

Re: FO page number positions

Subject: Re: FO page number positions
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 15 Nov 2001 13:27:51 +0000
page number fo
Hi Tanzila,

> The aim is to have every rightPage with an even page number in the
> right-hand position of the page.
>
> While every leftPage should have an odd page number in the left-hand
> position.

I'm not sure that this is the way you *should* do it, but this works:

Both the rightPage and leftPage fo:simple-page-master formatting
objects should contain a fo:region-before formatting object to give
the header. You need to give these two fo:region-before formatting
objects different names, using the region-name property. So something
like:

  <fo:simple-page-master master-name="leftPage">
    <fo:region-body margin="1.75cm" />
    <fo:region-before region-name="leftHeader"
                      extent="1.5cm" precedence="true" />
  </fo:simple-page-master>
  <fo:simple-page-master master-name="rightPage" margin="0.5cm">
    <fo:region-body margin="1.75cm" />
    <fo:region-before region-name="rightHeader"
                      extent="1.5cm" precedence="true" />
  </fo:simple-page-master>

Now in the fo:page-sequence, you need one fo:static-content formatting
object for the leftHeader and one fo:static-content for the
rightHeader. In the leftHeader, the fo:block should have a text-align
of 'left' while in the rightHeader, the fo:block should have a
text-align of 'right':

  <fo:page-sequence master-name="contents" initial-page-number="43">
     <fo:static-content flow-name="leftHeader"
        <fo:block font-family="Courier" font-size="10px"
                  text-align="left">
           <fo:page-number/>
        </fo:block>
     </fo:static-content>
     <fo:static-content flow-name="rightHeader"
        <fo:block font-family="Courier" font-size="10px"
                  text-align="right">
           <fo:page-number/>
        </fo:block>
     </fo:static-content>
     ...
  </fo:page-sequence>

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.