Re: [xsl] Centering tables in XLFO

Subject: Re: [xsl] Centering tables in XLFO
From: "Jost Klopfstein" <jost@xxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 08:58:09 -0800
With the current XEP implementation you have to use a table within a table in order to center a table with variable width on a page.

Cheers, Jost

Jost Klopfstein
Axos Technologies
Visit us at
and with free a trial version

----- Original Message ----- From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, February 14, 2007 7:41 AM
Subject: Re: [xsl] Centering tables in XLFO

At 2007-02-14 07:13 -0800, ms wrote:
I posted this question on the XSLFO group as well, I
would like to center a table using XSLFO and
<fo-table-and-caption text-align="center"> does not
work with XEP. Does anybody have any idea on how to do
this other than start-indent and end-indent? Any
suggetion/help is appreciated.

Eliot Kimber really does know what he is talking about; you should listen to him like I do. I've learned a lot from him.

I, too, found on my own to use text-align="center" in Antenna House and start-indent=, end-indent= in XEP.

If you want text-align="center" in XEP, then you could ask the vendor for it in order to indicate there is growing interest in having it supported.

If you want to use text-align="center", that indicates that you do not know the width of the table, because if you did know the width of the table, then the indent is easily calculated as half of the difference between the width and the parent area. In my production work I have rarely (if ever) used automatically-calculated table widths because the automatically-calculated column widths are calculated by vendor-specific algorithms. In production work I typically know precisely what my table widths are, so I can center them using either tool.

I hope this helps.

. . . . . . . . . . . . . Ken

Current Thread