Re: variable numbers of columns in PDF-tables

At 2002-01-28 04:40 -0500, Heckler wrote:
><COLSPEC COLNUM="1" COLNAME="col1" COLWIDTH="*">

This "*" is a CALS/OASIS-like specification of a proportional unit.

>The number of columns for the XML-table varies; the column-width is 15 cm.
>For the PDF output the tgroup-attribute cols shall by divided by the
>table-width.
>The result shall be written in <fo:table-column> to the attribute
>column-width.
>How can this be achieved by means of an XSL-File?

Using <table-column column-width="proportional-column-width(nnnnn)" where 
"nnnnn" is the number of proportional units ... just like CALS/OASIS.

So,

   <table-column column-width="proportional-column-width(1)"/>
   <table-column column-width="proportional-column-width(2)"/>
   <table-column column-width="proportional-column-width(1)"/>

Will make the middle column twice the width of each of the outside columns, 
regardless of the width of the table.

Ref: 5.10.4 The proportional-column-width function returns N units of 
proportional measure where N is the argument given to this function.

I hope this helps.

....................... Ken


--
Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO - Feb 18-22, 2002

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                        Definitive XSLT & XPath
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1               Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training:  02-02-11,12,14,15,18,21,03-04,05,06,08,11,
-                                04-08,09,10,12,05-14,15,06-04,07

Received on Monday, 28 January 2002 11:40:23 UTC