Subject: Re: [xsl] Missing 'width' attribute, CALS limitation? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 12 Nov 2002 16:41:46 -0500 |
At 13:00 2002-11-12 -0500, you wrote: Thanks Ken and thanks Eliot,
I'll try to to explain myself better now. The function Ken mentioned is useful, but it doesn't solve the problem. I still think my first assumption is right.
>You can mix absolute widths (i.e. column-width="5cm") with proportional >widths (i.e. column-width="proportional-column-width( number-of-units )") >and the formatter will prorate the remaining width of the table for >proportional specifications after removing any absolute values.
How do you know how wide one column is without a total number to divide and subtract from?
Adding absolute values is easy, but how do you know how much is left for the proportional columns when you subtract the absolute widths from the total?
Not all tables need the full width of fo:region-body, and some tables may perhaps need more than the full width.
There's no way to know the total unless you specify it by hand. The value must be carried by the XML document, then used by the stylesheet.
Here's my reading of proportional-column-width function (5.10.4):
"The proportional-column-width function returns N units of proportional measure where N is the argument given to this function."
You specify 5 if you have proportional columns widths like 2*, 2* and 1*. There may be absolute columns between, like in 2*, 2.54cm, 2*, 1in, 1*.
"The column widths are first determined ignoring the proportional measures."
I think they mean the proportional columns widths are not counted in the first calculation, when you add absolute widths.
"The difference between the table-width and the sum of the column widths is the available proportional width."
Where does the table-width come from?
"One unit of proportional measure is the available proportional width divided by the sum of the proportional factors." [...]
If there (coincidentally) was 5 inches left, the above set of proportial columns would be 2, 2 and 1 inch.
Here's my assumption again: "to calculate mixed column widths (proportional and absolute), you need the total width of a table?" Am I wrong this time too? :-)
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO: - North America: Feb 3 - Feb 7,2003
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-10-1 Practical Formatting Using XSL-FO Next conference training: 2002-12-08,03-03,06
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Missing 'width' attribute, Gustaf Liljegren | Thread | [xsl] Navigationg thru XML Elements, Chitra Lalita Madhwa |
[xsl] text values of nodes, Todd Binder | Date | RE: [xsl] text values of nodes, Dion Houston |
Month |