Hmm, I don't think that will help Christiane. This doesn't allow you to
alternate between two flows. XSL 1.0 only supports one flow per
page-sequence. Maybe the flow maps in the upcoming XSL 1.1 might help.
But these are not supported by FOP, yet.
My suggestion is to render the two editions after each other in two
separate page-sequences and then using a PDF post-processor [1] to
rearrange the page order inside the document.
[1] http://xmlgraphics.apache.org/fop/resources.html#products-pdf
On 07.03.2006 00:54:27 Karl Roberts wrote:
Check out http://xmlgraphics.apache.org/fop/fo.html#fo-oddeven
It'll show you how (basically you set up a fo:page-sequence-master
master-name=parallel/ that contains
fo:repeatable-page-master-alternatives's for your left and right hand
fo:simple-page-master then make your fo:page-sequence
master-reference=parallel
Cheers
Karl
-Original Message-
From: Christiane Fritze [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 7 March 2006 3:54 AM
To: fop-users@xmlgraphics.apache.org
Subject: page sequencing for parallel print
Hi all,
for a parallel printed edition I need two different transformations of
the same xml-document, which is easily made by means of the 'mode'
attribute.
Parallel printed means that one version of the text has to be on all odd
pages, the other version on all even pages (if you need see below).
If two fo:flows in fo:page-sequences were allowed, I could have
somthing like this:
fo:page-sequence master-reference=allPages force-page-count=auto
format=1
...
fo:flow flow-name=bodyPageRight
xsl:apply-templates mode=right
/fo flow
fo:flow flow-name=bodyPageLeft
xsl:apply-templates mode=left
/fo flow
/fo:page-sequence
So I need two fo:page-sequences (for the complete strucure of my
fo.xsl see below).
But how do I have to handle the fo:page-sequence-masters to get an
page-alternately rendered text?
| page 1 |page 2 |
|| |
| text version one text | same text version two sa | version one text
| vers | me text version two same |
| ion one text version | text version two same te |
| one text version one | xt version two same text |
| text version one text | version two same text ve |
| page 3 |page 4 |
|| |
| version one text vers | rsion two same text vers |
| ion one text version | ion two same text versio |
| one text version one | n two same text version |
| text version one text | two same text version tw | version one text
| vers | o same text version two |
and so on...
I use FOP 0.91 beta.
Thank you in advance for any help.
snip/
Jeremias Maerki
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]