Shubhrata Tewari wrote:

Hi,
I am iterating over a list of tables and I want each table to appear on a a new page.I have set the break-after="page" in the fo:block, but this is creating an unnecessary page at the end of the last element. Is there any way to add a page break without introducing an extra page before or after the fo:block?

This is more of an XSLT problem than a XSL-FO one. You can add a test to the XSLT so that break-after="page" is added to every table except the last one.

this is the code:
<xsl:for-each select="table">

<xsl:if test="position()<last()">


<fo:block padding-start="3.0in" padding-bottom="6pt" space-after="2pt" font-size="{$data_font_size}" font-style="{$font_style}" font-family="{$font_family}" keep-together="always" break-after="page">

</xsl:if>
<xsl:if test="position=last()">
<fo:block padding-start="3.0in" padding-bottom="6pt" space-after="2pt"
 font-size="{$data_font_size}" font-style="{$font_style}"
 font-family="{$font_family}" keep-together="always">

</xsl:if


.... table contents

</fo:block>

</xsl:for-each>

I hope this makes sense.

Chris




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

Reply via email to