This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XSL:FO newbie question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]