xsl-list
[Top] [All Lists]

Re: [xsl] Centering tables in XLFO

2007-02-14 09:58:49
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.
see
http://www.renderx.net/lists/xep-support/1444.html

Cheers, Jost

Jost Klopfstein
Axos Technologies
Visit us at http://www.axostech.com
and http://www.FormMapper.com with free a trial version

----- Original Message ----- From: "G. Ken Holman" <gkholman(_at_)CraneSoftwrights(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>