Re: [xsl] XSL:FO newbie question

Subject: Re: [xsl] XSL:FO newbie question
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Fri, 01 Feb 2002 15:58:17 -0600
Khalid wrote:
> 
> Can some tell me that if its possible to have netsted
> <fo:table>
> ,what I want to do is I have a deeply nested talbes structure( tables inside
> of table) and I want to mimic that using xsl:fo is it possible?if yes how?
> Cus I have tried
> <fo:table>
> <fo:table-body>
>  <fo:table-row>
>     <fo:table> something like this</fo:table>
>   </fo:table-row>
> </fo:table-body>
> </fo:table>

The nested table has to be in a cell.

Yes, you can have nested tables. I'm using the XSL Formatter product.
One tricky thing that the Antenna House guys helped me with is that you
need to set the start-indent of the nested table body to "0pt" in order
to get the result you probably expect. Otherwise it inherits it's
parent's indent, e.g.

<fo:table
    start-indent="12pt"
   <fo:table-body>
     <fo:table-row>
       <fo:table-cell>
       </fo:table-cell>
       <fo:table-cell>
         <fo:table>
           <-- make sure nested table doesn't indent from left edge of
containing cell: -->
           <fo:table-body 
	       start-indent="0pt">

Cheers,

Eliot
ISOGEN International, LLC

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread