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

Re: How to Align Text in the Page Header?

Subject: Re: How to Align Text in the Page Header?
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Fri, 10 Jan 2003 13:11:40 -0600
xml align text
Mete Kural wrote:
Hello,

I'm trying to align the text in the page header. There
are two pieces of text that need to go to the header:
chapter name and page number. I do this using markers.
I want to put both of these pieces of text on the same
line in the page header. I want to align the chapter
name to the left and the page number to the right. How
can I do this?

This is an FAQ and is also covered in the spec itself.


The trick is to use the text-align-last="justify" value on the block, with an auto-length leader between them. You can also use a table, which is more appropriate if you have multi-line items that need to be pushed to the edges of the header or footer.

<fo:block
    text-align-last="justify">
  <fo:retrieve-marker class="title"/>
  <fo:leader leader-pattern="space"/>
  <fo:page-number/>
</fo:block>

Cheers,

E.
--
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139


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.