Not sure what you mean? Are you just trying to put each ROW on a new page?
If so, try the following code for each student ROW:
<fo:block>
<xsl:choose>
<xsl:when test="position() != last()">
<xsl:attribute name="break-after">page</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="break-after">auto</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</fo:block>
This puts in a "page break after block" on all pages except the last one so
you do not get that pesky empty last page.
-Lou
|---------+--------------------------->
| | "Vaughn Dumas" |
| | <[EMAIL PROTECTED]|
| | a> |
| | |
| | 08/29/2005 07:23|
| | Please respond |
| | to fop-users |
| | |
|---------+--------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: <[email protected]>
|
| cc:
|
| Subject: Control-break on page
|
>-------------------------------------------------------------------------------------------------------------------------------|
Hi folks,
I'm creating a report to have a control break on a page. Problem is that
I'm getting a blank page with headings for my last page. This means a
wasted page.
I'm using 0.20.5.
I have student detail (condensed here) that must be printed one student per
page.
XML
===
<ROWSET>
<ROW num="1">
<student_number>1</student_number>
<student_name>Joe Bloggs</student_name>
</ROW>
<ROW num="2">
<student_number>205189389</student_number>
<student_name>John Smith</student_name>
</ROW>
</ROWSET>
XSL
===
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]