Nesting Tables

2003-01-09 Thread Brian Lyons
I am new to FOP and I got the examples running.  I will be using FOP to
generate PDF invoices and was wondering if there are
any examples of how to nest a table inside of a table and have the nested
table be centered inside of the top level tables column?

Thanks!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Nesting Tables

2003-01-09 Thread J.Pietschmann
Brian Lyons wrote:
I am new to FOP and I got the examples running.  I will be using FOP to
generate PDF invoices and was wondering if there are
any examples of how to nest a table inside of a table and have the nested
table be centered inside of the top level tables column?
You can use blind table columns with proportional column width
for centering. The following will appear to center a 5cm
column:
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-column column-width=5cm/
   fo:table-column column-width=proportional-column-width(1)/
   fo:table-body
 fo:table-row
   fo:table-cell/
   fo:table-cell...fo:table-cell
   fo:table-cell/
 /fo:table-row
  ...
Depending on your problem you can add the two columns for
centering to the table you want to have centered, or you
can use the code above and put the inner table into the
cell with the content.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]