Hi All

Just wondering whether anyone else has been experiencing problems when an fo:table is placed inside an fo:inline? (see the example below)

If the inline is changed to a block, the pdf is generated correctly, otherwise I get a NullPointerException:

java.lang.NullPointerException
at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:159) at org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:294) at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:647) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:582) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:275) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:98) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:240) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:510) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:232) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:259) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:227) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:153) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:381)

This occurs with 0.91beta, and with the latest trunk.

Regards
Jason


Example fo:

<?xml version="1.0" encoding="UTF-8"?><fo:root xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:svg="http://www.w3.org/2000/svg"; xmlns:fn="http://www.w3.org/2005/xpath-functions";><fo:layout-master-set><fo:simple-page-master page-width="21cm" page-height="29.7cm" margin="20mm" master-name="A4"><fo:region-body margin-top="0cm"/><fo:region-after/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="A4" font-size="12pt"><fo:flow flow-name="xsl-region-body">

   <fo:block break-before="page">
<fo:inline font-family="Arial"> <fo:table width="100%" table-layout="fixed">
                   <fo:table-column column-width="65%"/>
                   <fo:table-column column-width="10%"/>
                   <fo:table-column column-width="25%"/>
                   <fo:table-body>
                       <fo:table-row>
<fo:table-cell><fo:block margin-right="15px">test</fo:block></fo:table-cell>
                       </fo:table-row>
                   </fo:table-body>
               </fo:table>
</fo:inline> </fo:block> </fo:flow></fo:page-sequence></fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to