Howard Miller wrote:
I wonder is somebody can help me with a blank page appearing at the beginning of all my documents.
...
The idea is that each <row>..</row> will represent a page. So I did a xsl:template match on the row and used an fo block with break-after="page" immediately inside, and then all my content inside that block.
Trouble is the first page always contains no data - just the fixed content (ie, the second page contains the input data from the first <row></row>) .

I would expect a blank page at the end, not at the beginning. Run the transformation standalone and have a look at the FO output, there should be something at the beginning of the flow explaining this odd behaviour.

I have actually tried changing the break-after to break-before but it makes no difference.

This is easy: FOP always breaks a page on break-before="page" even if it is already at the beginning of a page (which is a bug). You could try <xsl:template match="row"> <fo:block> <xsl:if test="position()!=1"> <xsl:attribute name="break-before">page</xsl:attribute> </xsl:if> ... </fo:block> </xsl:template> to work around this.

J.Pietschmann


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



Reply via email to