Dear
Bill,
The
W3C recommendations mention that you can use the <table-and-caption>
element to format a table. I have just tried this, but it appears that this
element is not implemented in FOP nor in XEP.
To center a table in FOP, you
can nest the table in the cell of another table, as follows:
<fo:table>
<fo:table-column
width="proportional-column-width(1)"/>
<fo:table-column
width="proportional-column-width(1)"/>
<fo:table-column
width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell><fo:block/></fo:table-cell>
<fo:table-cell><fo:block>
<!-- place the
table to be centered here
-->
</fo:block></fo:table-cell>
<fo:table-cell><fo:block/></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
I hope
this helps.
Best
regards,
Peter
Verhaar
IDC
Publishers
EAD
colleagues:
Does anyone know how
to center a table in XSL-FO. All of the properties I can find only work
with text within the table. I want to center the table.
Thanks to anyone who can help.
=====================================================
Bill
Walker
Imaging Field Services Officer
Amigos Library Services, 14400
Midway Road, Dallas, TX 75244-3509
800-843-8482 ext: 2853
972-340-2853
(direct)
972-991-6061 (fax)
www.amigos.org Email:
[log in to unmask]
=====================================================