Kevin Flynn wrote:
> 
> It would be really nice if the table plug in could handle percentage 
> column widths in a similar way to XSL-FO (i.e, 100% is the currently 
> available column width). Tables are always bound to be something of a 
> pain in a non-wysiwyg editing environment, but if you have a fixed PDF 
> output format, and set up XXE to provide approximately similar column 
> widths, then specifying percentage column widths is a bit easier than 
> using absolute units. You don't have to remember exact column widths for 
> different indents etc., but you still get a rough idea of whether your 
> chosen column widths will work on the printed page.
> 

This is already supported for HTML tables (width attribute of col and 
colgroup) for which a percentage is a valid value.

See http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4.2
---
MultiLength: The value ( %MultiLength; in the DTD) may be a %Length; or 
a relative length. A relative length has the form "i*", where "i" is an 
integer. When allotting space among elements competing for that space, 
user agents allot pixel and percentage lengths first, then divide up 
remaining available space among relative lengths. Each relative length 
receives a portion of the available space that is proportional to the 
integer preceding the "*". The value "*" is equivalent to "1*". Thus, if 
60 pixels of space are available after the user agent allots pixel and 
percentage space, and the competing relative lengths are 1*, 2*, and 3*, 
the 1* will be alloted 10 pixels, the 2* will be alloted 20 pixels, and 
the 3* will be alloted 30 pixels.
---

CALS (the only Docbook tables up to V4.2, after that, you can also use 
HTML tables in DocBook) tables does not support percentages. But it 
supports relative values such as 2*, 3*, etc.

See http://www.oasis-open.org/html/a502.htm
---
COLWIDTH: Either proportional measure of the form number*, i.e., "5*" 
for 5 times the proportion, or "*" (which is equivalent to "1*"); fixed 
measure, i.e., 2pt for 2 point, 3pi for 3 pica; or mixed measure, i.e., 
2*+3pt. Coefficients are positive integers or fixed point numbers.
  Declared Value = CDATA
Default = IMPLIED (means obtain value from a named style specification 
if any. If there is no such value, or if the value is "" [the null 
string] then assume a proportion of "1*".)
---
        

Reply via email to