You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jörg Flotho <j....@allgaeu.net> on 2001/11/02 14:05:37 UTC

2 fo:page-sequences

(franklin_2pageseqs.fo)
The example is similar but in critical points different:

This is what I needed:

<fo:layout-master-set>

			<fo:simple-page-master master-name="rightpage"
				page-width="210mm"  page-height="297mm"
				margin-top="1.5cm"  margin-bottom="0.5cm"
				margin-left="3.5cm" margin-right="2.5cm"
				orphans="2" widows="2">

				<fo:region-before extent="1cm"/>
				<fo:region-after extent="1.5cm"/>

				<fo:region-body margin-top="1cm" margin-bottom="1.5cm" margin-left="0cm"
margin-right="0cm"/>
      		</fo:simple-page-master>

			<fo:simple-page-master master-name="leftpage"
				page-width="210mm"  page-height="297mm"
				margin-top="1.5cm"  margin-bottom="0.5cm"
				margin-left="2.5cm" margin-right="3.5cm"
				orphans="2" widows="2">

				<fo:region-before extent="1cm"/>
				<fo:region-after extent="1.5cm"/>

				<fo:region-body margin-top="1cm" margin-bottom="1.5cm" margin-left="0cm"
margin-right="0cm"/>
      		</fo:simple-page-master>

		<fo:page-sequence-master master-name="odd_pages">
				<fo:repeatable-page-master-alternatives>
						<fo:conditional-page-master-reference master-name="rightpage"
odd-or-even="odd"/>
				</fo:repeatable-page-master-alternatives>
        	</fo:page-sequence-master>

		<fo:page-sequence-master master-name="even_pages">
				<fo:repeatable-page-master-alternatives>
						<fo:conditional-page-master-reference master-name="leftpage"
odd-or-even="even"/>
				</fo:repeatable-page-master-alternatives>
        	</fo:page-sequence-master>

		</fo:layout-master-set>

<fo:page-sequence master-name="odd_pages">

<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="end">
<fo:page-number/>
</fo:block>
</fo:static-content>

<fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>


<fo:page-sequence master-name="even_pages">

<fo:static-content flow-name="xsl-region-after">
fo:block text-align="start">
<fo:page-number/>
</fo:block>
</fo:static-content>

<fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates/>
</fo:flow>
</fo:page-sequence>

But it doesn't work!

I found two reasons:
a) It seems that the attribute 'odd-or-even' in
fo:conditional-page-master-reference has to be used as a pair.
b) I have to use fo:flow and xsl:apply-templates twice.

Has anyone an idea to find another way?

Jörg





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: 2 fo:page-sequences

Posted by Corinna Hischke <co...@infix.de>.
Hi again,

you should use it like in the example franklin_alt.fo:

1. give the region-before and region-after elements in your
    simple-page-masters different names
   (say region-before-even, region-before-odd etc.);
2. create only one page-sequence-master:

<fo:page-sequence-master master-name="document">
  <fo:repeatable-page-master-alternatives>
  <fo:conditional-page-master-reference
    master-name="rightpage"
    odd-or-even="odd"/>
  <fo:conditional-page-master-reference
    master-name="leftpage"
    odd-or-even="even"/>
  </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

3. create only one page-sequence for your page-sequence-master.
   In this sequence you can define four different fo:static-content with
   flow-names "region-before-even", "region-before-odd" etc.

HTH, Corinna

----- Original Message -----
From: "J�rg Flotho" <j....@allgaeu.net>
To: "Fop-Dev" <fo...@xml.apache.org>
Sent: Friday, November 02, 2001 2:05 PM
Subject: 2 fo:page-sequences


> (franklin_2pageseqs.fo)
> The example is similar but in critical points different:
>
> This is what I needed:
> [...]
>
> But it doesn't work!
>
> I found two reasons:
> a) It seems that the attribute 'odd-or-even' in
> fo:conditional-page-master-reference has to be used as a pair.
> b) I have to use fo:flow and xsl:apply-templates twice.
>
> Has anyone an idea to find another way?
>
> J�rg
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org