|
Subject: RE: [xsl] FO: center a table From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 27 Dec 2005 10:23:22 -0500 |
Kaila Kaarle wrote:
> I believe you must/can have a fo:block element as the child of > fo:flow element and then the fo: > Set this with text-align="center" attribute for the fo:block.
This align the text within the table, not the table on the page (more formally on the fo:flow), doesn't it?
<?xml version="1.0" encoding="iso-8859-1"?><!--georges.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt">
<layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body"/>
</simple-page-master>
</layout-master-set> <page-sequence master-reference="frame">
<flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format">
<block text-align="center">
<block>Test 1</block>
<table width="5cm" border="solid 1pt">
<table-body>
<table-cell>
<block>Hello</block>
</table-cell>
</table-body>
</table>
</block>
<block>Test 2</block>
<table-and-caption text-align="center">
<table width="5cm" border="solid 1pt" text-align="start">
<table-body>
<table-cell>
<block>Hello</block>
</table-cell>
</table-body>
</table>
</table-and-caption>
<block text-align="center">
<block>Test 3</block>
<table-and-caption>
<table width="5cm" border="solid 1pt" text-align="start">
<table-body>
<table-cell>
<block>Hello</block>
</table-cell>
</table-body>
</table>
</table-and-caption>
</block>
</flow>
</page-sequence>
</root>
-- Upcoming XSLT/XSL-FO hands-on courses: Denver,CO March 13-17,2006 World-wide on-site corporate, govt. & user group XML/XSL 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] FO: center a table, Florent Georges | Thread | RE: [xsl] FO: center a table, Florent Georges |
| Re: [xsl] Different output encoding, George Cristian Bina | Date | Re: [xsl] FO: center a table, G. Ken Holman |
| Month |