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
===
.
. Report headings, parameters etc
.
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:for-each select="ROW">
<!-- Do the break here -->
<fo:block break-after="page">
<!-- Table definition -->
<fo:table table-layout="fixed" width="10in">
<fo:table-column column-width="2in"/>
<fo:table-column column-width="8in"/>
<fo:table-header>
<fo:table-row>
<fo:table-cell><fo:block>Student
Number</fo:block></fo:table-cell>
<fo:table-cell><fo:block>Student Name</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell><fo:block><xsl:value-of select="student_number"/>
</fo:block></fo:table-cell>
<fo:table-cell><fo:block><xsl:value-of select="student_name"/>
</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</xsl:for-each>
</fo:block>
</fo:flow>
But for 2 students I get 3 pages with the last page being blank. In a
production environment, each page will actually have the report name, date,
time and page number.
Any ideas or pointers would be most appreciated.
Vaughn Dumas
--
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]