Nested tables
Felipe de Alvarenga Leite <[email protected]> Tue, 07 Oct 2003 11:20:52 -0300
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
I know that this project is on a big reformulation and is going to be
integrated with FOP, but I need to generate a RTF and FOP has not yet
this functionality.
I am trying to make some nested tables, but JFOR is having a strange
behavior. It leaves an empty cell over the nested table...
Here is a minimal xsl-fo which causes that:
<fo:root xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm"
margin-bottom="0.3cm" margin-top="0.1cm" page-width="21cm"
page-height="29.7cm" master-name="first">
<fo:region-body margin-top="2.0cm"/>
<fo:region-before extent="0.5cm"/>
<fo:region-after extent="0.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="first">
<fo:flow flow-name="xsl-region-body">
<!-- Here is the table. The second column should have only one
line, but has two -->
<fo:table>
<fo:table-column column-width="9.27cm"/>
<fo:table-column column-width="9.27cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>empty</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:table>
<fo:table-column column-width="9.27cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>Nested</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-cell>
</fo:table-row>
</fo:table-body></fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
Thanks
Felipe de Alvarenga Leite
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf