[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Centering tables in XLFO

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

--
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.