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

Re: Alternating headers and footers

Subject: Re: Alternating headers and footers
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 15 Nov 2000 10:10:32 GMT
alternating headers and footers
> The problem is that the page-master fo doesn't allow to especify any content
> (as it must be). Then you only can specify diferent margins for even and odd
> pages and region extents. 

No you can also specify different static contents for the  different
page masters, something like


<fo:layout-master-set>
<fo:page-sequence-master master-name="pages">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference odd-or-even="odd" master-name="right"/>
<fo:conditional-page-master-reference odd-or-even="even" master-name="left"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

<fo:simple-page-master master-name="right" margin-top="16mm"
  margin-bottom="80mm" margin-left="39mm" margin-right="17mm">
<fo:region-body margin-top="0mm" margin-bottom="0mm"/>

<fo:region-after extent="5mm" region-name="xsl-region-after-right"/>

<fo:static-content flow-name="xsl-region-after-right">
<fo:block text-align="justify" font-size="10pt">
<fo:retrieve-marker retrieve-class-name="np-number"/>
<fo:leader rule-thickness="0pt"/>
<fo:page-number format="1"/>
</fo:block>
</fo:static-content>

...

so here in the specification for the "right" pages in the alternating
sequence the footer is specified to use the flow named
xsl-region-after-right which is defined to do something with
some font setup and obtaining some text from a marker and from the
page number.

David

[I think this is the first time I've attempted answering an FO question
on this list:-]

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp


 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.