Hi
Running the NIST test suite I get 2 table related exceptions and 1
KnuthElement related exception:
java.lang.NullPointerException
org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:246)
org.apache.fop.layoutmgr.table.GridUnit.resolveBorder(GridUnit.java:230)
org.apache.fop.layoutmgr.table.TableRowIterator.resolveStartEndBorders(TableRowIterator.java:480)
org.apache.fop.layoutmgr.table.TableRowIterator.buildGridRow(TableRowIterator.java:419)
org.apache.fop.layoutmgr.table.TableRowIterator.prefetchNext(TableRowIterator.java:294)
<?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="test-page-master"
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in"
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in"
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">
This test evaluates the "border-before-color" property on a
table-body FO. The "border-before-color" property (see red border) for
the next table-body FO was set to red.
</fo:block>
<fo:table border-collapse="collapse-with-precedence">
<fo:table-body border-before-style="solid" border-before-color="red">
<fo:table-row>
<fo:table-cell>
<fo:block>
The border above should be red.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
java.lang.NullPointerException
org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasForCell(TableContentLayoutManager.java:885)
org.apache.fop.layoutmgr.table.TableContentLayoutManager$RowPainter.addAreasAndFlushRow(TableContentLayoutManager.java:864)
org.apache.fop.layoutmgr.table.TableContentLayoutManager.addAreas(TableContentLayoutManager.java:642)
org.apache.fop.layoutmgr.table.TableLayoutManager.addAreas(TableLayoutManager.java:296)
<?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="test-page-master"
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in"
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in"
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column column-width="1.0in"/>
<fo:table-column column-width="1.0in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell background-color="red">
<fo:block>This cell spans one row</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-rows-spanned="2" background-color="aqua">
<fo:block>This cells spans two rows</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell background-color="aqua">
<fo:block/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
java.lang.ClassCastException
org.apache.fop.layoutmgr.inline.ContentLayoutManager.getNextKnuthElements(ContentLayoutManager.java:282)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getLeaderInlineArea(LeaderLayoutManager.java:150)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.get(LeaderLayoutManager.java:77)
org.apache.fop.layoutmgr.inline.LeaderLayoutManager.getNextKnuthElements(LeaderLayoutManager.java:255)
<?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="test-page-master"
margin-right="1.0in" margin-bottom="1.0in" margin-top="0.2in"
margin-left="1.0in" page-width="8.5in" page-height="11in">
<fo:region-body margin-bottom="1.0in" margin-right="1.0in"
margin-top="0.2in" margin-left="1.0in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test-page-master">
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="0.4in" space-after.maximum="0.4in">The
"leader-pattern" property of the "leader" FO below was set to
"use-content"(set to "*").</fo:block>
<fo:block text-align="start">Entry 1<fo:leader
leader-pattern="use-content" leader-length.optimum="1.0in"
leader-length.maximum="1.0in">*</fo:leader>Page 1</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>