W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2002

Re: table cell with in a table cell

From: Paul Grosso <pgrosso@arbortext.com>
Date: Thu, 03 Oct 2002 08:25:01 -0500
Message-Id: <4.3.2.7.2.20021003082340.01770208@172.27.10.30>
To: tom dunne <tom.dunne@solnet.co.nz>, xsl-editors@w3.org

At 22:50 2002 10 02 -0400, tom dunne wrote:
>Hey guys....
> 
>Im trying to do some work with tables in my XSL FO document.  I have a requirement to have a column in a table that can hold up to 4 different data results.  So i thought i could have children table cells with in my parent table cell but when i render this in PDF it doesnt happen.
> 
>Heres the snippet of code im using :
> 
><fo:table-cell>
>         <fo:table-cell padding="6pt" border="0.5pt solid black">
>                <fo:block background-color="grey"> N </fo:block>
>         </fo:table-cell>
>         <fo:table-cell padding="6pt" border="0.5pt">
>               <fo:block background-color="white"> A </fo:block>
>         </fo:table-cell>
></fo:table-cell>
> 
>so im wondering is there a better way to do this.  Im new to xsl fo, so any help would be appreciated.
> 
>Tom.

You can't just put table-cell within table-cell, but
the XSL table model supports nested tables which should
give you want you want.  (Though whether you get the
desired PDF or not depends on the given implementation.)

paul
Received on Thursday, 3 October 2002 09:29:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT