Hi !

We have a problem with "first", "last" and "others" page-sequence-master.
The following code should work if my understanding of page-sequence-master
and the corresponding attributes is correct.
Using FOP 0.20.5rc we only retrieve pages with region-after "first" - and
"others" (depending of the order of conditional-page-master-reference). Any
ideas?


<fo:layout-master-set>
                        <fo:simple-page-master master-name="first-page" 
        
page-width="210mm" page-height="297mm" 
        
margin-left="8mm"       margin-right="1cm" margin-top="0mm"
margin-bottom="0mm">
                                <fo:region-body margin-top="120mm"
margin-left="11mm" margin-bottom="150mm"/>
                                <fo:region-before
region-name="xsl-region-before-1" extent="120mm"/>
                                <fo:region-after
region-name="xsl-region-after-1" extent="50mm"/>
                        </fo:simple-page-master>

                        <fo:simple-page-master master-name="others" 
        
page-width="210mm" page-height="297mm" 
        
margin-left="8mm" margin-right="1cm" margin-top="0mm" margin-bottom="0mm">
                                <fo:region-body margin-top="95mm"
margin-left="11mm" margin-bottom="150mm"/>
                                <fo:region-before
region-name="xsl-region-before-2" extent="95mm"/>
                                <fo:region-after
region-name="xsl-region-after-2" extent="50mm"/>
                        </fo:simple-page-master>

                        <fo:simple-page-master master-name="last-page" 
        
page-width="210mm" page-height="297mm" 
        
margin-left="8mm" margin-right="1cm" margin-top="0mm" margin-bottom="0mm">
                                <fo:region-body margin-top="95mm"
margin-left="11mm" margin-bottom="150mm"/>
                                <fo:region-before
region-name="xsl-region-before-3" extent="95mm"/>
                                <fo:region-after
region-name="xsl-region-after-3" extent="50mm"/>
                        </fo:simple-page-master>
                        

                        <fo:page-sequence-master master-name="standard">
                                <fo:repeatable-page-master-alternatives>
                                <fo:conditional-page-master-reference
master-reference="first-page" page-position="first"/>
                                <fo:conditional-page-master-reference
master-reference="others" page-position="rest" />
                                <fo:conditional-page-master-reference
master-reference="last-page" page-position="last" />
                                </fo:repeatable-page-master-alternatives>
                                </fo:page-sequence-master>
                        </fo:layout-master-set>
                        
                        <fo:page-sequence  master-reference="standard">
                                <!-- 
                                                before-1 (first page)
                                -->
                                <fo:static-content
flow-name="xsl-region-before-1">
                                        <fo:table>
                                                        ...
                                        </fo:table>

                                </fo:static-content>
                                <!--
                                                before-2 (page2 2..n-1)
                                -->
                                <fo:static-content
flow-name="xsl-region-before-2">
                                        <fo:table>
                                                ...
                                        </fo:table>

                                </fo:static-content>
                                <!-- 
                                                before-3 (last page)
                                -->
                                <fo:static-content
flow-name="xsl-region-before-3">
                                        <fo:table>
                                                ...
                                        </fo:table>

                                </fo:static-content>
                                <!-- 
                                                after           (Footer page
1..)
                                -->
                                <fo:static-content
flow-name="xsl-region-after-1">
                                <fo:block>-1-</fo:block>
                                        <xsl:call-template name="footer1">
                                                <xsl:with-param name="page"
select="1"/>
                                        </xsl:call-template>
                                </fo:static-content>
                                <!-- 
                                                after-2
(Footer page 2...n-1)
                                -->
                                <fo:static-content
flow-name="xsl-region-after-2">
                                <fo:block>-2-</fo:block>
                                        <xsl:call-template name="footer1">
                                                <xsl:with-param name="page"
select="1"/>
                                        </xsl:call-template>
                                </fo:static-content>
                                <!-- 
                                                after-3
(Footer last page)
                                -->
                                <fo:static-content
flow-name="xsl-region-after-3">
                                        <fo:block>-3-</fo:block>
                                        <xsl:call-template name="footer2">
                                                <xsl:with-param name="page"
select="2"/>
                                        </xsl:call-template>
                                </fo:static-content>
                                <!-- 
                                                body
                                -->
                                <fo:flow flow-name="xsl-region-body">
                                        <xsl:call-template name="content"/>
                                </fo:flow>
                                
                        </fo:page-sequence>
                </fo:root>
        </xsl:template>


Best regards,

> Joachim Unger
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to