Page 1 of 1

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

Posted: Thu Apr 01, 2010 9:53 am
by dfx

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 name="Doc2Page_2">
<fo:block break-before="page">
<xsl:call-template name="myTemplate2"/>

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"/>

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?