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

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

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

Thu Apr 01, 2010 9:53 am


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?

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest