[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

FO: nested tables not appearing in RTF output (Jfor)

Subject: FO: nested tables not appearing in RTF output (Jfor)
From: Jonathan Gruenhut <Jonathan.Gruenhut@xxxxxxxxxxxxxxx>
Date: Tue, 17 Aug 2004 11:09:01 +0200
rtf nested tables
I am trying to convert a FO file to RTF through Jfor, automated through a
Java program.  My output is displayed in tables.  I want to place a table
inside some cells, but no data (text or images) come out in the RTF output.


I validated my FO against the DTD and with fo-lint, and it came out fine.
The text of the FO file is below.  Does anyone have any suggestions for how
I can get the tables to come out right?

To take a step back from the problem, my goal is to display both images and
text correctly in a single table cell.  In HTML, I know that the only way to
accomplish that is through nested tables.  Is there a workaround in FO?  I
tried several ways to display the cell correctly using nested fo:block tags,
but it's entirely possible I don't know enough subtle FO things to make the
blocks appear correctly.

Thanks very much.

Jonathan Gruenhut

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
        <fo:simple-page-master master-name="all" page-height="29.7cm"
page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm"
margin-right="2.5cm">
            <fo:region-body margin-top="2cm" margin-bottom="2cm"/>
            <fo:region-before extent="3cm"/>
            <fo:region-after extent="2cm"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="all">
        <fo:static-content flow-name="xsl-region-before">
            <fo:table background-color="white">
                <fo:table-column column-width="4cm"/>
                <fo:table-column column-width="12cm"/>
                <fo:table-body line-height="12pt">
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block>
                                <fo:external-graphic src="images/145.gif"
width="auto" height="auto"/>
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block font-size="9pt" text-align="start"
color="#FF3300" border-style="solid" border-color="black"
border-width="0.0pt" space-before="0.3cm">
                                This report was automatically generated (c)
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
            <fo:block>
                <fo:leader leader-pattern="rule" leader-length="16cm"/>
            </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="xsl-region-after">
            <fo:block>
                <fo:leader leader-pattern="rule" leader-length="16cm"/>
            </fo:block>
            <fo:table background-color="white">
                <fo:table-column column-width="12cm"/>
                <fo:table-column column-width="4cm"/>
                <fo:table-body line-height="12pt">
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block font-size="12pt" text-align="start"
border-style="solid" border-color="black" border-width="0.0pt">
                                (c) 2003.  All rights reserved.
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block font-size="12pt" text-align="center">
                                Page
                                <fo:page-number/>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
            <fo:table>
                <fo:table-column column-width="16cm"/>
                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell>
                            <fo:block>
                                <fo:table>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-column column-width="2.6cm"/>
                                    <fo:table-body>
                                        <fo:table-row>
                                            <fo:table-cell
background-color="#E1DDCE" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">Type</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#E1DDCE" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">Revision</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#E1DDCE" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">Description</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#E1DDCE" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">2003</fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                        <fo:table-row>
                                            <fo:table-cell
background-color="#F3F2EC" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">Events</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#F3F2EC" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">1</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#F3F2EC" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">CENTRAL</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#EFF6FB" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
text-align="right">
                                                    <fo:table>
                                                        <fo:table-body>
                                                            <fo:table-row>
 
<fo:table-cell>
 
<fo:block text-align="center">
 
<fo:external-graphic height="auto" width="auto" src="images/s_s_nono.gif"/>
 
</fo:block>
 
</fo:table-cell>
 
<fo:table-cell>
 
<fo:block text-align="right">40</fo:block>
 
</fo:table-cell>
                                                            </fo:table-row>
                                                        </fo:table-body>
                                                    </fo:table>
                                                </fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                        <fo:table-row>
                                            <fo:table-cell
background-color="#EDEBE2" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">Calls</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#EDEBE2" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">1</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#EDEBE2" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
font-weight="bold">NATIONAL</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell
background-color="#EFF6FB" border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                                <fo:block
text-align="right">
                                                    <fo:table>
                                                        <fo:table-body>
                                                            <fo:table-row>
 
<fo:table-cell>
 
<fo:block text-align="center">
 
<fo:external-graphic height="auto" width="auto" src="images/s_s_nono.gif"/>
 
</fo:block>
 
</fo:table-cell>
 
<fo:table-cell>
 
<fo:block text-align="right">40</fo:block>
 
</fo:table-cell>
                                                            </fo:table-row>
                                                        </fo:table-body>
                                                    </fo:table>
                                                </fo:block>
                                            </fo:table-cell>
                                        </fo:table-row>
                                    </fo:table-body>
                                </fo:table>
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>                    
        </fo:flow>
    </fo:page-sequence>
</fo:root>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.