You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jim Urban <ji...@netsteps.net> on 2001/12/06 16:49:17 UTC

RE: break-after vs break-before

Here is the solution to your blank page problem:

	<xsl:for-each select="....">
		<fo:block white-space-collapse="false">
			<xsl:call-template ...>
			</xsl:call-template>
		</fo:block>
		<xsl:if test="position() >= 1 and  position() != last()">
			<fo:block break-before="page" />
		</xsl:if>
	</xsl:for-each>


-----Original Message-----
From: John M. Corro [mailto:john.corro@cornerstone.net]
Sent: Thursday, December 06, 2001 11:22 AM
To: fop-dev@xml.apache.org
Subject: break-after vs break-before


I'm trying to put together a report that has automatic page breaking (for
ref. the XSL is at the bottom of the email).  My problem is that the report
starts w/ a blank page when I use 'break-before', but if I try 'start-after'
a blank page is at the end of the report.  The blank page at the end isn't
so bad, but if there's a way to remove it that'd be nice.

Also, does the 'break-XXX' attribute simply add page breaks whenever you
reach the end of a page or is it smarter than that?  For example, say a
table is 3 pages in size.  Can you use the 'break-XXX' attribute to make it
such that table headers are printed at the top of all 3 pages?  My
understanding is that the table will simply print across the 3 pages w/ no
regards for adding table headers at the top of each page.
<fo:block break-after="page">

    <fo:table...

        <!-- call to template that produces table headers -->

        <fo:for-each...>

            <!-- call to template that produces table's contents -->

        </fo:for-each>

   </fo:table>

</fo:block>





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org