Insert Table action
on the toolbar or from the contextual menu to add a table in a DITA topic. By default, DITA
supports four types of tables:<step>
element in a DITA Task document to describe a series of optional choices that a user must
make before proceeding.Since DITA is a structured format, you can only insert a table in places in the structure of a topic where tables are allowed. The Oxygen XML Author Eclipse plugin toolbar provides support for entering and editing tables. It also helps to indicate where you are allowed to insert a table or its components by disabling the appropriate buttons.
To insert a Simple DITA table, select the
Insert Table action on the toolbar or from the
contextual menu (or the Table submenu from the
DITA menu). The Insert Table dialog box
appears. Select Simple for the table
Model.
@colwidth attribute). You can choose one of the following properties
for the column width:@relcolwidth attribute with the values listed as the number of
shares followed by an asterisk. The value of the shares is totaled and rendered as a
percent. For example, relcolwidth="1* 2* 3*" causes widths of
16.7%, 33.3%, and 66.7%. When entering content into a cell in one column, the width
proportions of the other columns are maintained. If you change the width by dragging
a column in Author mode, the values of the
@relcolwidth attribute are automatically changed accordingly. By
default, when you insert, drag and drop, or copy/paste a column, the value of the
@relcolwidth attribute is 1*.@frame attribute. It is used to
specify where a border should appear in the table. The allowed values are as follows:@conref, the values of attributes specified locally are preserved.
You can choose this option to override this behavior and pull the value of this
particular attribute from the @conref target. For more information,
see https://www.oxygenxml.com/dita/1.3/specs/langRef/attributes/ditauseconreftarget.html.When you click Insert, a simple table is inserted into your document at the current cursor position.
To insert an OASIS Exchange Table (CALS), select the
Insert Table action on the toolbar or from the
contextual menu (or the Table submenu from the
DITA menu). The Insert Table dialog box
appears. Select CALS for the table Model. This
model allows you to configure more properties than the Simple model.
@colwidth attribute). You can choose one of the following properties
for the column width:@colwidth attribute with the values listed as the number of shares
followed by an asterisk. The value of the shares is totaled and rendered as a
percent. For example, colwidth="1* 2* 3*" causes widths of 16.7%,
33.3%, and 66.7%. When entering content into a cell in one column, the width
proportions of the other columns are maintained. If you change the width by dragging
a column in Author mode, the values of the
@colwidth attribute are automatically changed accordingly. By
default, when you insert, drag and drop, or copy/paste a column, the value of the
@colwidth attribute is 1*.@colwidth attribute). Entering
content into a cell changes the rendered width dynamically. If you change the width
by dragging a column in Author mode, a dialog box will be
displayed that asks you if you want to switch to proportional or fixed column
widths.pt unit is inserted, but you can change the units in the
colspecs (column specifications) section above the table or
in Text mode. The following units are allowed:
pt (points), cm (centimeters),
mm (millimeters), pi (picas),
in (inches).@frame attribute. It is used to
specify where a border should appear in the table. The allowed values are as follows:@conref, the values of attributes specified locally are preserved.
You can choose this option to override this behavior and pull the value of this
particular attribute from the @conref target. For more information,
see https://www.oxygenxml.com/dita/1.3/specs/langRef/attributes/ditauseconreftarget.html.@rowsep
attribute). The allowed values are: 0 (no separator) and
1 (include separators).@colsep
attribute). The allowed values are: 0 (no separator) and
1 (include separators).@align
attribute). The allowed values are:justify value cannot be rendered in
Author mode, so you will only see it in the
output.@char attribute for alignment.@conref, the values of attributes specified locally are preserved.
You can choose this option to override this behavior and pull the value of this
particular attribute from the @conref target. For more information,
see https://www.oxygenxml.com/dita/1.3/specs/langRef/attributes/ditauseconreftarget.html.When you click Insert, a CALS table is inserted into your document at the current cursor position.
When you insert a CALS table, you see a link for setting the colspecs (column specifications) of your table. Click the link to open the controls that allow you to adjust various column properties. 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.
To insert a Choice table within a <step> element in a DITA Task
document, select the
Insert Table
action on the toolbar or in the Insert submenu from the contextual
menu (or the Table submenu from the DITA
menu), or select choicetable from the Content Completion
Assistant. The Insert Table dialog box appears.
Select Simple for the table Model.
@colwidth attribute). You can choose one of the following properties
for the column width:@relcolwidth attribute with the values listed as the number of
shares followed by an asterisk. The value of the shares is totaled and rendered as a
percent. For example, relcolwidth="1* 2* 3*" causes widths of
16.7%, 33.3%, and 66.7%. When entering content into a cell in one column, the width
proportions of the other columns are maintained. If you change the width by dragging
a column in Author mode, the values of the
@relcolwidth attribute are automatically changed accordingly. By
default, when you insert, drag and drop, or copy/paste a column, the value of the
@relcolwidth attribute is 1*.@frame attribute. It is used to
specify where a border should appear in the table. The allowed values are as follows:@conref, the values of attributes specified locally are preserved.
You can choose this option to override this behavior and pull the value of this
particular attribute from the @conref target. For more information,
see https://www.oxygenxml.com/dita/1.3/specs/langRef/attributes/ditauseconreftarget.html.When you click Insert, a Choice table is inserted into your
DITA Task document at the current cursor position (within a <step>
element).
To insert a Properties table within a <refbody> element in a DITA
Reference document, select the
Insert
Table action on the toolbar or in the Insert submenu
from the contextual menu (or the Table submenu from the
DITA menu), or select properties(wizard) from the Content Completion
Assistant. The Insert Table dialog box appears.
Select Properties for the table Model.
@frame attribute. It is used to
specify where a border should appear in the table. The allowed values are as follows:@conref, the values of attributes specified locally are preserved.
You can choose this option to override this behavior and pull the value of this
particular attribute from the @conref target. For more information,
see https://www.oxygenxml.com/dita/1.3/specs/langRef/attributes/ditauseconreftarget.html.When you click Insert, a Properties table is inserted into
your DITA Reference document at the current cursor position (within a
<refbody> element).
You can edit the structure of an existing table using the table buttons on the toolbar (or in the contextual menu) to add or remove cells, rows, or columns, and to set basic table properties. Additional attributes can be used to fine-tune the formatting of your tables by using the Attributes view (). See the DITA documentation for a full explanation of these attributes.
You can also use the
Table Properties (Ctrl + T (Command + T on
macOS))
action from the toolbar or contextual menu (or DITA menu) to modify many of the properties of
the table.
Also, remember that underneath the visual representation, both table models are really just XML. If necessary, you can edit the XML directly by switching to Text mode.
You can use normal copy/paste shortcuts to move content between cells. Oxygen XML Author Eclipse plugin includes a Smart Paste feature that preserves certain style and structure information when pasting content.