[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 18:02:22 +0000
xls fo page number
I wrote:
>> 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:

Silly me. It looks like an easier option is to just have one
fo:static-content formatting object for the xsl-region-before and use
the text-align property on the block to align the text to the outside
(left for left pages, right for right pages):

  <fo:static-content flow-name="xsl-region-before">
    <fo:block text-align="outside"><fo:page-number /></fo:block>
  </fo:static-content>

I guess that you only need to use the alternative fo:static-content
formatting objects if the odd and even headers have very different
content (e.g. the left gives the name of the chapter, the right the
name of the subsection, as well as the page number).
  
Cheers,

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.