<fo:block break-before="page"> not working

Here should go questions about transforming XML with XSLT and FOP.
dfx
Posts: 3

<fo:block break-before="page"> not working

Thu Apr 01, 2010 9:53 am

Hi,

Still new to this language so please go easy on me.
Here's my (simplified) code :

<xsl:template name="Doc2Page_1">
<xsl:call-template name="myTemplate1"/>

</xsl:template>

<xsl:template name="Doc2Page_2">
<fo:block break-before="page">
<xsl:call-template name="myTemplate2"/>
</fo:block>
</xsl:template>

I needed to add a third page to my document so I coded :

<xsl:template name="Doc2Page_3">
<fo:block break-before="page">
<xsl:call-template name="myTemplate3"/>
</fo:block>
</xsl:template

The contents of page3 were superimposed on page2, ie no page break.
After a lot of playing but little understanding, I added :
<fo:block>&#160;</fo:block> after the line :

<xsl:template name="Doc2Page_3">. Now I get my 3rd page.

Anyone see what might be happening?

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest