colspec
colspec — Specifications for a column in a table
Synopsis
Content Model
colspec ::=
EMPTY
Attributes
Name | Type | Default | ||||||
rowsep | CDATA | None | ||||||
align |
| None | ||||||
colwidth | CDATA | None | ||||||
colname | CDATA | None | ||||||
colnum | CDATA | None | ||||||
char | CDATA | None | ||||||
colsep | CDATA | None | ||||||
charoff | CDATA | None |
Description
The attributes of this empty element specify the presentation characteristics of entries in a column of a table.
Each ColSpec refers to a single column. Columns are numbered sequentially from left to right in the table. If the ColNum attribute is not specified, the ColSpec is for the next column after the preceeding ColSpec or column 1 if it is the first ColSpec.
Processing expectations
Suppressed. This element is expected to obey the semantics of the CALS Table Model Document Type Definition, as specified by OASIS Technical Memorandum TM 9502:1995 .
Attributes
align
Alignspecifies the horizontal alignment ofEntrys (orEntryTbls) in the column. The default alignment is inherited from the enclosingTGroup. IfCharis specified, see alsoCharandCharOff. IndividualEntrys andEntryTbls can specify an alternate alignment.char
Charspecifies the alignment character when theAlignattribute is set toChar.charoff
CharOffspecifies the percentage of the column's total width that should appear to the left of the first occurance of the character identified inCharwhen theAlignattribute is set toChar. This attribute is inherited from the enclosingTGroup.colname
ColNamegives a symbolic name to a column. The symbolic name can then be used in subsequentEntrys andSpanSpecs to identify the column.colnum
ColNumgives the number of the column defined by thisColSpec. If not specified, thisColSpecdescribes the next column to the right of the column defined by the previousColSpecor the first column (column 1) if this is the firstColSpec.colsep
If
ColSephas the value 1 (true), then a rule will be drawn to the right of the column described by thisColSpec. A value of 0 (false) suppresses the rule. The rule to the right of the last column in the table is controlled by theFrameattribute of the enclosingTableorInformalTableand theColSepof the last column in the table is ignored. If unspecified, this attribute is inherited from enclosing elements. IndividualEntrys orEntryTbls can override theColSpecsetting of this attribute.colwidth
ColWidthspecifies the desired width of the relevant column. It can be either a fixed measure using one of the CALS units (36pt, 10pc, etc.) or a proportional measure. Proportional measures have the form “number*”, meaning this column should be number times wider than a column with the measure “1*” (or just “*”). These two forms can be mixed, as in “3*+1pc”.rowsep
If
RowSephas the value 1 (true), then a rule will be drawn below the cells in the specified column. A value of 0 (false) suppresses the rule. The rule below the last row in the table is controlled by theFrameattribute of the enclosingTableorInformalTableand theRowSepof the last row is ignored. If unspecified, this attribute is inherited from enclosing elements. IndividualEntrys orEntryTbls can override theColSpecsetting of this attribute.
Examples
For examples, see informaltable, table.