Re: [xsl] Centering tables in XLFO

Subject: Re: [xsl] Centering tables in XLFO
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 10:41:01 -0500
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

--
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread