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:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:22 AM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]