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 Ken Green <ke...@comcast.net> on 2002/04/10 05:22:20 UTC
Tables inside of tables
Hello,
I am trying to build a table as follows:
COLUMN COLUMN COLUMN COLUMN Info Info Info
Info Info Info
Info Info Info
Info Info Info
COLUMN COLUMN COLUMN COLUMN Info Info Info
Info Info Info
So, it is basically a 7 column table, but the first four columns always
span several rows of the last 3 columns (the number is variable).
My first thought was to do this as one main table that was 5 columns
wide, and then add a 3-column table embedded in the final column of
the main table:
COLUMN COLUMN COLUMN COLUMN 3-Col-Table
COLUMN COLUMN COLUMN COLUMN 3-Col-Table
COLUMN COLUMN COLUMN COLUMN 3-Col-Table
Unfortunately, the content of the embedded table does not appear in
the PDF output (which FOP successfully builds).
So - the question is.... does anyone know if what I am doing (a table
embedded in the cell of another table) is allowed ? Anything special
I have to do ? I have made sure that the three columns of the embedded
table fit within the last column of the main table.
Thanks !
Ken
Re: Tables inside of tables
Posted by Ken Green <ke...@comcast.net>.
J.,
That was it ... not quite enough cutting and pasting was done.... I missed
the <fo:table-body> on the internal table.
Thanks !
Ken
----- Original Message -----
From: "J.Pietschmann" <j3...@yahoo.de>
To: <fo...@xml.apache.org>
Sent: Wednesday, April 10, 2002 3:34 PM
Subject: Re: Tables inside of tables
> Ken Green wrote:
> > I am trying to build a table as follows:
> ...
> > My first thought was to do this as one main table that was 5 columns
> > wide, and then add a 3-column table embedded in the final column of
> > the main table:
> ...
> > Unfortunately, the content of the embedded table does not appear in
> > the PDF output (which FOP successfully builds).
> ...
> > So - the question is.... does anyone know if what I am doing (a table
> > embedded in the cell of another table) is allowed ? Anything special
> > I have to do ?
>
> Tables within tables are allowed. There is nothing special
> to do. However, disappearing table data is most often caused
> by a missing fo:table-body around the table rows. In this
> case, FOP ignores the data without any message. Check
> whether your inner table has a proper table body.
>
> J.Pietschmann
>
>
Re: Tables inside of tables
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ken Green wrote:
> I am trying to build a table as follows:
...
> My first thought was to do this as one main table that was 5 columns
> wide, and then add a 3-column table embedded in the final column of
> the main table:
...
> Unfortunately, the content of the embedded table does not appear in
> the PDF output (which FOP successfully builds).
...
> So - the question is.... does anyone know if what I am doing (a table
> embedded in the cell of another table) is allowed ? Anything special
> I have to do ?
Tables within tables are allowed. There is nothing special
to do. However, disappearing table data is most often caused
by a missing fo:table-body around the table rows. In this
case, FOP ignores the data without any message. Check
whether your inner table has a proper table body.
J.Pietschmann
Re: Tables inside of tables
Posted by Chuck Paussa <Ch...@systems.dhl.com>.
Ken,
I have done exactly what you describe, so I know it is possible. The
only thing I can think of is that you haven't allowed enough room for
the inner table to be displayed. Test it making sure that the width of
that 5th column is wider than the combined widths of the three columns
of the enclosed table.
Chuck
Ken Green wrote:
> Hello,
>
>
>
> I am trying to build a table as follows:
>
>
>
>
>
> COLUMN COLUMN COLUMN COLUMN Info Info Info
>
>
> Info Info Info
>
>
> Info Info Info
>
>
> Info Info Info
>
> COLUMN COLUMN COLUMN COLUMN Info Info Info
>
>
> Info Info Info
>
>
>
>
>
> So, it is basically a 7 column table, but the first four columns always
>
> span several rows of the last 3 columns (the number is variable).
>
>
>
> My first thought was to do this as one main table that was 5 columns
>
> wide, and then add a 3-column table embedded in the final column of
>
> the main table:
>
>
>
> COLUMN COLUMN COLUMN COLUMN 3-Col-Table
>
> COLUMN COLUMN COLUMN COLUMN 3-Col-Table
>
> COLUMN COLUMN COLUMN COLUMN 3-Col-Table
>
>
>
> Unfortunately, the content of the embedded table does not appear in
>
> the PDF output (which FOP successfully builds).
>
>
>
> So - the question is.... does anyone know if what I am doing (a table
>
> embedded in the cell of another table) is allowed ? Anything special
>
> I have to do ? I have made sure that the three columns of the embedded
>
> table fit within the last column of the main table.
>
>
>
> Thanks !
>
>
>
> Ken
>
>
>
>
>