W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

Re: Odd and Even pages problem in XSL:FO

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 10 Jun 2002 12:57:53 -0400
Message-Id: <>
To: <www-xsl-fo@w3.org>

At 2002-06-10 11:02 -0400, ahmed abdelhameed wrote:
>And i need to create in the pdf odd and even pages where:
>1- Odd pages contains table with gray background and page number.
>2- Even pages without tables and with blue background and white color text.

I'm assuming you mean that you need either your headers or your footers to 
contain the above ... remember that in XSL-FO the content of the paginated 
flow isn't being tested, rather, the particular page geometry being 
selected in the page sequence to accommodate the paginated flow is what is 
being tested for odd and even.

>So, please i need the exact code for this settings.

You haven't yet named your regions distinctly ... you will need to set up 
the differing regions with something like:

   <simple-page-master master-name="rightPage" ...>
     <region-before region-name="contents-before-right" extent="6.5cm"/>

   <simple-page-master master-name="leftPage" ...>
     <region-before region-name="contents-before-left" extent="6.5cm"/>

Then, in each of your page sequences, define the static content you want to 
appear in these regions that will be triggered by the paginated flow:

     <static-content flow-name="contents-before-right">
       <block>Before right block</block>
     <static-content flow-name="contents-before-left">
       <block>Before left block</block>

The names of the regions are up to you.

I hope this helps.

................ Ken

Upcoming: 3-days XSLT/XPath and/or 2-days XSL-FO:Sep 30-Oct 4,2002

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1                Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed),
articles, training (instructor-live,Internet-live,web/CD,licensed)
Next public training:     2002-06-11,13,14,08-05,26,27,09-30,10-03
Received on Monday, 10 June 2002 12:58:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC