colwidth Column Width (OASIS Table Model)

Specifies the width for a column in a table, either in fixed units or as a proportional measure.

Usage/Remarks

When specified in proportional or relative measure, the proportion of the column is specified as the number of shares followed by an asterisk. Thus, “3*” gets three shares; “12*” gets 12 shares and will be 4 times the width of the column at “3*”.
When specified in fixed units, the number is immediately followed by the unit. Thus, “14pt” will be 14 points wide, and “6in” will be 6 inches. Units allowed are:
pt
points
cm
centimeters
mm
millimeters
pi
picas
in
inches
The official OASIS Exchange (CALS) Table Model documentation can be found at http://www.oasis-open.org/specs/a502.htm
OPTIONAL on element: <oasis:colspec>
Value Meaning
A number, an asterisk, or a number plus an asterisk The width of the column in relative/proportional units (in the form number asterisk, e.g., “4*” or “3*”) or explicit units (e.g., “3pt” or “14pt”).
Restriction A proportional measure of “1*”, or if a number is supplied without an asterisk or unit the unit is assumed to be “pt”.
Tagged Sample

Two-point wide column

With no measurement unit named, points measurement is assumed
...
<oasis:table frame="all">
<oasis:tgroup cols="7">
<oasis:colspec colnum="1" colname="col1" align="center" colsep="1"/>
<oasis:colspec colnum="2" colname="col2" align="center" colsep="1"/>
<oasis:colspec colnum="3" colname="col3" align="center" colsep="1"/>
<oasis:colspec colnum="4" colname="col4" align="center" colsep="1"/>
<oasis:colspec colnum="5" colname="col5" align="center" colsep="1" colwidth="2"/>
<oasis:colspec colnum="6" colname="col6" align="center" colsep="1"/>
<oasis:colspec colnum="7" colname="col7" align="char" charoff="30" char="."/>
<oasis:thead valign="middle">...</oasis:thead>
<oasis:tbody valign="middle">...</oasis:tbody>
</oasis:tgroup>
</oasis:table>
...