You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Mickey, John" <Mi...@leg.wa.gov> on 2002/02/22 23:13:51 UTC
break-before in table-row
I have a situation in FOP where it is dropping off the last table-row if it
has a 'break-before' attribute set to 'page'. The second page is completely
blank. It works correctly if the 'break-before' is not in the last
table-row. Is this a bug in FOP or am I not interpreting the FO spec
correctly?
---
John Mickey
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="draft" page-width="8.5in"
page-height="11in" margin-left="0.5in" margin-right="0.5in">
<fo:region-body margin-top="0.5in" margin-bottom="0.5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="draft">
<fo:flow flow-name="xsl-region-body">
<fo:block font-family="Courier" font-size="12pt" line-height="24pt"
hyphenate="false" text-align="justify" background-color="grey">
<fo:table table-layout="fixed">
<fo:table-column column-number="1" column-width="3.5in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>Row 1</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>Row 2</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row break-before="page">
<fo:table-cell>
<fo:block>Row 3</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>