[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Missing 'width' attribute, CALS limitation?

Subject: Re: Missing 'width' attribute, CALS limitation?
From: Gustaf Liljegren <gustafl@xxxxxxxxxx>
Date: Tue, 12 Nov 2002 22:10:42 +0100
column width wrong in ie
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? :-)

>So, from an XSL-FO point of view, I think pgwide="1" would have to 
>translate to span="all".

That makes sence.

Gustaf


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.