|
Subject: Re: [xsl] Formatting XSL-FO Based on XML Position From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 15 Dec 2003 17:58:45 -0500 |
Create fo:table to format some text occurring after a fo:block.
The XML input looks like this:
<p tabs="0.2 1.2 2.2"> some text, maybe formatted <b>maybe not</b>, and then: <tab/>item<tab/>item2<tab/>item3<br/> <tab/>item4<tab/>item5 </p>
T:\ftemp>type kyle.fo <?xml version="1.0" encoding="utf-8"?><!--kyle.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">
<block>
some text, maybe formatted
<inline font-weight="bold">maybe not</inline>,
and then:</block> <table>
<table-column column-width=".2in"/>
<table-column column-width="1in"/>
<table-column column-width="1in"/>
<table-column column-width="1in"/>
<table-body>
<table-row>
<table-cell><block/></table-cell>
<table-cell><block>item</block></table-cell>
<table-cell><block>item2</block></table-cell>
<table-cell><block>item3</block></table-cell>
</table-row>
<table-row>
<table-cell><block/></table-cell>
<table-cell><block>item4</block></table-cell>
<table-cell><block>item5</block></table-cell>
</table-row>
</table-body>
</table>
</flow>
</page-sequence>
</root>-- North America (Washington, DC): 3-day XSLT/2-day XSL-FO 2004-02-09 Instructor-led on-site corporate, government & user group training for XSLT and XSL-FO world-wide: please contact us for the details
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) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Formatting XSL-FO Based o, Andreas L. Delmelle | Thread | AW: [xsl] switching designs in xsl, Kloeck, Erwin |
| RE: [xsl] fun with fo tab formattin, Andreas L. Delmelle | Date | RE: [xsl] fun with fo tab formattin, Andreas L. Delmelle |
| Month |