Hi Arved!
I have to generate one PDF file that contains 2 different reports(different
data and layout): report 1 has to be on pages 1,3,5,7,.... and report 2 has to
be on pages 2,4,6,8....
I succeded in creating different static-content for odd and even pages. But it
doesn't allow me to create two flows. Do you have another solution for this?
Here is a very simplified exemple of what I've tried to do:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- Define the Page Master -->
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm"
page-width="210mm"
margin-top="5mm"
margin-bottom="5mm"
margin-left="12mm"
margin-right="2mm"
master-name="OddPageMaster">
<fo:region-body region-name="odd-region-body"
margin-top="1cm" margin-bottom="2cm"/>
<fo:region-before
region-name="odd-region-before" extent="1cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
<fo:simple-page-master page-height="297mm"
page-width="210mm"
margin-top="5mm"
margin-bottom="5mm"
margin-left="12mm"
margin-right="2mm"
master-name="EvenPageMaster">
<fo:region-body region-name="even-region-body"
margin-top="20cm" margin-bottom="2cm"/>
<fo:region-before
region-name="even-region-before" extent="20cm"/>
<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="PageMaster">
<fo:static-content flow-name="odd-region-before">
<fo:block> odd page </fo:block>
</fo:static-content>
<fo:static-content flow-name="even-region-before">
<fo:block> even page </fo:block>
</fo:static-content>
<fo:flow flow-name="odd-region-body">
<xsl:for-each select=".......">
<fo:block>odd</fo:block>
</xsl:for-each>
</fo:flow>
</fo:page-sequence>
When I try to give distinct names for the region-bodies in simple-page-master,
I get error when I run Apache FOP.
The two reports are very different and complex.
Thanks again,
Roxana
-----Original Message-----
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 24, 2003 10:43 AM
To: [EMAIL PROTECTED]
Subject: RE: Alternate flows on odd and even pages
> -----Original Message-----
> From: Roxana Constandes [mailto:[EMAIL PROTECTED]
> Sent: April 24, 2003 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Alternate flows on odd and even pages
>
>
> Hi All!
>
> I need to to alternate two different flows on odd and even pages.
> I know that is possible to alternate the static-content regions.
> But can I do it for region-body? I have to create two flows, one
> for odd pages and another one for even pages. Is it possible?
>
> Thanks in advance,
> Roxana
No, you cannot do this directly with XSL-FO. What is your scenario? It may
be possible to accomplish the task with a few extra steps.
AHS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]