DITA Table Layouts
CALS Table Model Layout
The
CALS table model allows for more flexibility and table customization than other
models. When choosing a CALS table model from the Insert
Table dialog box, you have access to more configurable properties. The layout of
a CALS table includes a colspecs section that allows you
to easily configure some properties without opening the Table
Properties dialog box. For example, you can change the value of column widths
(colwidth attribute) or the text alignment (align
attribute). Although they appear as part of the Author mode, the colspecs link and its
controls will not appear in your output. They are just there to make it easier to adjust how
the columns of your table are formatted.
Figure: CALS Table in DITA
Simple Table Model Layout
Figure: DITA Simple Table
Choice Table Model Layout
choicetable element is a useful device for documenting options within a
single step of a task. You can insert Choice tables in DITA tasks either by
selecting choicetable from the Content Completion
Assistant (within a step element) or by using the
Insert Table action on the
toolbar or from the contextual menu). The options and layout of a Choice table
is similar to the Simple table model.Figure: DITA Choice Table
Table Validation in DITA
Oxygen XML Editor reports table layout problems that are detected in manual or
automatic validations. When you validate a DITA map with the
Validate and Check for
Completeness action, if the Report
table layout problems option is enabled in the DITA Map
Completeness Check dialog box, table layout problems will be reported
in the validation results. The types of errors that may be reported for DITA table layout
problems include:
- A row has fewer cells than the number of columns detected from the table
colsattribute. - A row has more cells than the number of columns detected from the table
colsattribute. - A cell has a vertical span greater than the available rows count.
- The number of
colspecsis different than the number of columns detected from the tablecolsattribute. - The number of columns detected from the table
colsattribute is different than the number of columns detected in the table structure. - The value of the
cols,rowsep, orcolsepattributes are not numeric. - The
namest,nameend, orcolnameattributes point to an incorrect column name.
- A row has fewer cells than the number of table columns.