Thanks Pascal, But the problem happens because sometimes the first page can have odd page-number.
In your example, if I add another page before Model1 page (the "first"), the Model2 and Model3 pages will alternate in the inverse order! Here is the test I done: <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="model0" page-height="10cm" page-width="15cm"> <fo:region-body margin="2cm"></fo:region-body> <fo:region-before extent="2cm"></fo:region-before> </fo:simple-page-master> <fo:simple-page-master master-name="model1" page-height="10cm" page-width="15cm"> <fo:region-body margin="2cm"></fo:region-body> <fo:region-before extent="2cm" region-name="xsl-region-before-model1"></fo:region-before> </fo:simple-page-master> <fo:simple-page-master master-name="model2" page-height="10cm" page-width="15cm"> <fo:region-body margin="2cm"></fo:region-body> <fo:region-before extent="2cm" region-name="xsl-region-before-model2"></fo:region-before> </fo:simple-page-master> <fo:simple-page-master master-name="model3" page-height="10cm" page-width="15cm"> <fo:region-body margin="2cm"></fo:region-body> <fo:region-before extent="2cm" region-name="xsl-region-before-model3"></fo:region-before> </fo:simple-page-master> <fo:page-sequence-master master-name="model"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="model1" page-position="first"></fo:conditional-page-master-reference> <fo:conditional-page-master-reference master-reference="model2" odd-or-even="odd"></fo:conditional-page-master-reference> <fo:conditional-page-master-reference master-reference="model3" odd-or-even="even"></fo:conditional-page-master-reference> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="model0"> <fo:flow flow-name="xsl-region-body" line-height="2cm"> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-reference="model"> <fo:static-content flow-name="xsl-region-before-model1"> <fo:block>Model 1</fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-before-model2"> <fo:block>Model 2</fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-before-model3"> <fo:block>Model 3</fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body" line-height="2cm"> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> <fo:block>Some text</fo:block> </fo:flow> </fo:page-sequence> </fo:root> You see that pages are now ordered like this: Model0 - [Model1 - (Model2,Model3) - (Model2,Model3) - (Model2,Model3) - (Model2,Model3)...] I am searching for a way pages wille always alternate like this: [Model1 - (Model3,Model2) - (Model3,Model2) - (Model3,Model2) - (Model3,Model2)...], independently from if the first page (Model1) is odd or even. That's why I tried to use 2 fo:repeatable-page-master-alternatives. The first is normally destinated to be used when the first page is odd. The second when it is even. But it seems that FOP does not check if the <fo:repeatable-page-master-alternatives> is the right one every time the parent fo:page-sequence-master is used... May be I missed understanding something in the way multiple <fo:repeatable-page-master-alternatives>'s are used inside a page-sequence-master... Thanks again. .... PLEASE HELP! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
