I have been using fop 0.20.4 since couple of months and my page break have
been working fine. Recently I switched to fop 0.20.5 since I wanted to add
password protection for my pdf document. I'm using the same xsl which I used
with older version. Using this latest version of fop, some extra blank pages
are getting added in the document. Is it a bug or normal behavior for this
version?

        <xsl:template match="Statements"> //List of statements
                <fo:root>
                        <fo:layout-master-set>
                                <fo:simple-page-master
master-name="default-page" page-height="11in" page-width="8.5in"
margin-left="0.6in" margin-right="0.6in">
                                                <fo:region-before
extent="0.79in" />
                                                <fo:region-body
margin-top="0.79in" margin-bottom="0.79in"
font-family="Helvetica,Times,Courier" font-size="10pt"/>
                                        </fo:simple-page-master>
                                </fo:layout-master-set>
                        <xsl:apply-templates  select='Statement'/>
                </fo:root>
        </xsl:template>

        <xsl:template match="Statement">
                <fo:page-sequence initial-page-number="1"
master-reference="default-page"> //Start each st with page 1
                        <fo:static-content flow-name="xsl-region-before">
                                <xsl:call-template name='StaticBlock'/>
// Put static info(page number..) and st number at the top
                        </fo:static-content>

                        <fo:flow flow-name="xsl-region-body">
        
                                <!-- this causes a page break for each
statement -->
                                <fo:block break-before="page"
font-size="8pt">    //Add a page break before stating the new st.
                                        <xsl:call-template name='header'/>
                                        <xsl:apply-templates
select='detail'/>
                                        <xsl:call-template name='footer'/>
                                </fo:block>
                        </fo:flow>
                </fo:page-sequence>
        </xsl:template>

It's adding an extra page before each statement except the first statement.
How can I change the code so that it won't add an extra page? Is there any
better way of doing the same? Appreciate any help.

Thanks.





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

Reply via email to