Subject: Re: [xsl] Alternate page-sequences From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 22 Apr 2003 10:48:42 -0400 |
I have to create a report that has diferrent flows on odd and even pages. I am trying to create two page sequences and alternate them.
Here is a stylesheet (simplified):
<fo:layout-master-set>
<fo:simple-page-master ...
master-name="OddPageMaster">
<fo:region-body margin-top="1cm" margin-bottom="2cm"/>
<fo:region-before extent="1cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
<fo:simple-page-master ...
master-name="EvenPageMaster">
<fo:region-body margin-top="4cm" margin-bottom="2cm"/>
<fo:region-before extent="4cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="PageMaster"> <fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="OddPageMaster"
page-position="any" odd-or-even="odd" />
<fo:conditional-page-master-reference master-reference="EvenPageMaster"
page-position="any" odd-or-even="even" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set>
<fo:page-sequence master-reference="OddPageMaster">
...
<fo:page-sequence master-reference="EvenPageMaster">
...
But it doesn't work.
First, I get all pages for OddPageMaster (on both odd and even pages) and then I get the output for EvenPageMaster.
What I want is to alternate them.
-- Upcoming hands-on courses: Europe (XSLT/XPath): May 5, 2003 - Europe (XSL-FO): May 16, 2003 - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Alternate page-sequences, Roxana Constandes | Thread | RE: [xsl] Alternate page-sequences, Roxana Constandes |
[xsl] using fn:max with Saxon 7.4 ?, malcolm macaulay | Date | [xsl] using {} brackets with xsl:re, malcolm macaulay |
Month |