How align a table in the center of a page

Having trouble installing Oxygen? Got a bug to report? Post it all here.
shijanjorge
Posts: 5
Joined: Fri Sep 23, 2011 6:20 pm

How align a table in the center of a page

Post by shijanjorge »

Hi

I need align a table in the center of a page. wht the sizes of the right and the left are the same with respect to the page.

I review the file tables-attr.xsl but i can´t found the attribute for give a solution to this problem.

Please, can help me?

Thanks
Radu
Posts: 9447
Joined: Fri Jul 09, 2004 5:18 pm

Re: How align a table in the center of a page

Post by Radu »

Hi Jorge,

Centering tables does not seem so easy to accomplish using XSL-FO.

There seem to be some workarounds when Apache FOP is used to produce the final PDF output (default behavior in Oxygen):
http://xmlgraphics.apache.org/fop/fo.ht ... le-horizon

and with the commercial RenderX XEP:
http://services.renderx.com/lists/xep-support/1444.html

but this involves more complicated stylesheet modifications, you have to control generating the structure of the table, there seems to be no magic attribute to set to accomplish this.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shijanjorge
Posts: 5
Joined: Fri Sep 23, 2011 6:20 pm

Re: How align a table in the center of a page

Post by shijanjorge »

Thanks Very much

Your information was important. I resolved the problem. Thanks
Post Reply