<entry>
A table entry represents a single cell in a table that is based on the OASIS Exchange Table Model.
Content model
(Text |
<audio>
|
<dl>
|
<div>
|
<imagemap>
|
<example>
|
<fig>
|
<image>
|
<lines>
|
<lq>
|
<note>
|
<hazardstatement>
|
<object>
|
<ol>
|
<p>
|
<pre>
|
<sl>
|
<ul>
|
<video>
|
<cite>
|
<include>
|
<keyword>
|
<ph>
|
<strong>
|
<em>
|
<b>
|
<i>
|
<line-through>
|
<overline>
|
<sup>
|
<sub>
|
<tt>
|
<u>
|
<q>
|
<term>
|
<text>
|
<tm>
|
<xref>
|
<data>
|
<sort-as>
|
<foreign>
|
<draft-comment>
|
<fn>
|
<indexterm>
|
<required-cleanup>
)*
- Text
-
<audio>
-
<b>
-
<cite>
-
<data>
-
<div>
-
<dl>
-
<draft-comment>
-
<em>
-
<example>
-
<fig>
-
<fn>
-
<foreign>
-
<hazardstatement>
-
<i>
-
<image>
-
<imagemap>
-
<include>
-
<indexterm>
-
<keyword>
-
<line-through>
-
<lines>
-
<lq>
-
<note>
-
<object>
-
<ol>
-
<overline>
-
<p>
-
<ph>
-
<pre>
-
<q>
-
<required-cleanup>
-
<sl>
-
<sort-as>
-
<strong>
-
<sub>
-
<sup>
-
<term>
-
<text>
-
<tm>
-
<tt>
-
<u>
-
<ul>
-
<video>
-
<xref>
Attributes
The following attributes are available on this element: ID
and conref attributes, localization
attributes, @align
, @base
, @char
, @charoff
, @class
, @colsep
, @outputclass
, @rev
, @rowsep
, @valign
, and the attributes
defined below.
@colname
- Specifies the column name in which an entry is found. The value is a reference to the
@colname
attribute on the<colspec>
element. @headers
- Specifies which entries in the current
table provide headers for this cell. The
@headers
attribute contains an unordered set of unique, space-separated tokens, each of which is an ID reference of an entry from the same table. @nameend
- Specifies the last logical column that is included in a horizontal span. The value is
a reference to the
@colname
attribute on the<colspec>
element. @namest
- Specifies the first logical column that is included in a horizontal span. The value is
a reference to the
@colname
attribute on the<colspec>
element. @morerows
- Specifies the number of additional rows to add in a vertical span.
@rotate
- Specifies whether the contents of the entry are rotated. The
following values are valid:
- 0
- Indicates that no rotation occurs.
- 1
- Indicates that the contents of the cell are rotated 90 degrees counterclockwise.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
@scope
- Specifies that the current entry is a header for other table
entries. The following values are valid:
- col
- Indicates that the current entry is a header for all cells in the column.
- colgroup
- Indicates that the current entry is a header for all cells in the columns that are spanned by this entry.
- row
- Indicates that the current entry is a header for all cells in the row.
- rowgroup
- Indicates that the current entry is a header for all cells in the rows that are spanned by this entry.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
@align
(complex table attributes)- Specifies the horizontal alignment of
text in table entries. The following
values are valid:
- left
- Indicates left alignment of the text.
- right
- Indicates right alignment of the text.
- center
- Indicates center alignment of the text.
- justify
- Justifies the contents to both the left and the right.
- char
- Indicates character alignment. The text is aligned with
the first occurrence of the character specified by the
@char
attribute. - -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
The
@align
attribute is available on the following table elements:<colspec>
,<entry>
, and<tgroup>
. @base
- Specifies metadata about the element. It is often used as a base for specialized
attributes that have a simple syntax for values, but which are not conditional
processing attributes.
The
@base
attribute takes a space-delimited set of values. However, when serving as a container for generalized attributes, the attribute values will be more complex. See Attribute generalization for more details. @char
(complex table attributes)- Specifies the alignment character, which is the character
that is used for aligning the text in table entries. This
attribute applies when
align="char"
. A value of "" (the null string) means there is no aligning character.For example, if
align="char"
andchar="."
are specified, then text in the table entry aligns with the first occurrence of the period within the entry. This might be useful if decimal alignment is required.The
@char
attribute is available on the following table elements:<colspec>
and<entry>
. @charoff
(complex table attributes)- Specifies the horizontal offset of the alignment character
that is specified by the
@char
attribute. The value is a greater-than-zero number that is less than or equal to 100. It represents the percentage of the current column width by which the text is offset to the left of the alignment character.For example, if
align="char"
,char="."
, andcharoff="50"
are all specified, then text in the table entry is aligned 50% of the distance to the left of the first occurrence of the period character within the table entry.The
@charoff
attribute is available on the following table elements:<colspec>
and<entry>
. @class
(not for use by authors)- This attribute is not for use by authors. If an editor displays
@class
attribute values, do not edit them. Specifies a default value that defines the specialization ancestry of the element. Its predefined values allow DITA tools to work correctly with specialized elements. In a generalized DITA document the@class
attribute value in the generalized instance might differ from the default value for the@class
attribute for the element as given in the DTD or schema. See The class attribute rules and syntax for more information. This attribute is specified on every element except for the<dita>
container element. It is always specified with a default value, which varies for each element. @colname
- Specifies the column name in which an entry is found. The value is a reference to the
@colname
attribute on the<colspec>
element. @colsep
(complex table attributes)- Specifies whether to render column separators between table
entries. The following values are valid: 0
(no separators) and
1 (separators).
The
@colsep
attribute is available on the following table elements:<colspec>
,<entry>
,<table>
, and<tgroup>
. @conaction
- Specifies how the element content will be pushed into a new location. The following
values are valid:
- mark
- The element acts as a marker when pushing content before or after the target, to
help ensure that the push action is valid. The element with
conaction="mark"
also specifies the target of the push action with@conref
. Content inside of the element withconaction="mark"
is not pushed to the new location. - pushafter
- Content from this element is pushed after the location specified by
@conref
on the element withconaction="mark"
. The element withconaction="pushafter"
is the first sibling element after the element withconaction="mark"
. - pushbefore
- Content from this element is pushed before the location specified by
@conref
on the element withconaction="mark"
. The element withconaction="pushbefore"
is the first sibling element before the element withconaction="mark"
. - pushreplace
- Content from this element replaces any content from the element referenced by
the
@conref
attribute. A second element withconaction="mark"
is not used when usingconaction="pushreplace"
. - -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
See Pushing reusable content to a new location for examples and details about the syntax.
@conkeyref
- Specifies a key name or a key name with an element ID that acts as an indirect reference to reusable content. The referenced content is used in place of the content of the current element. See Indirect key-based content reuse for more details about the syntax and behaviors.
@conref
- Specifies a URI that references a DITA element. The referenced content is used in place of the content of the current element. See Direct URI-based content reuse for examples and details about the syntax.
@conrefend
- Specifies a URI that references the last element in a sequence of elements, with the
first element of the sequence specified by
@conref
. The referenced sequence of elements is used in place of the content of the current element. See Reusing a range of elements for examples and details about the syntax. @dir
-
Identifies or overrides the text directionality. The following values are valid:
- lro
- Indicates an override of the Unicode Bidirectional Algorithm, forcing the element into left-to-right mode.
- ltr
- Indicates left-to-right.
- rlo
- Indicates an override of the Unicode Bidirectional Algorithm, forcing the element into right-to-left mode.
- rtl
- Indicates right-to-left.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
See The dir attribute for more information.
@headers
- Specifies which entries in the current
table provide headers for this cell. The
@headers
attribute contains an unordered set of unique, space-separated tokens, each of which is an ID reference of an entry from the same table. @id
- Specifies an identifier for the current element. This ID is the
target for references by
@href
and@conref
attributes and for external applications that refer to DITA or LwDITA content. This attribute is defined with the XML data type NMTOKEN, except where noted for specific elements within the language reference.See id attribute for more details.
@morerows
- Specifies the number of additional rows to add in a vertical span.
@nameend
- Specifies the last logical column that is included in a horizontal span. The value is
a reference to the
@colname
attribute on the<colspec>
element. @namest
- Specifies the first logical column that is included in a horizontal span. The value is
a reference to the
@colname
attribute on the<colspec>
element. @outputclass
- Specifies a role that the element is playing. The role must be consistent with the
basic semantic and expectations for the element. In particular, the
@outputclass
attribute can be used for styling during output processing; HTML output will typically preserve@outputclass
for CSS processing. @rev
- Specifies a revision level of an element that identifies when the element was added or modified. It can be used to flag outputs when it matches a run-time parameter. It cannot be used for filtering nor is it sufficient to be used for version control. If no value is specified but the attribute is specified on a containing element within a map or within the related-links section, the value cascades from the closest containing element.
@rotate
- Specifies whether the contents of the entry are rotated. The
following values are valid:
- 0
- Indicates that no rotation occurs.
- 1
- Indicates that the contents of the cell are rotated 90 degrees counterclockwise.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
@rowsep
(complex table attributes)- Specifies whether to render row separators between table
entries. The following values are valid: 0
(no separators) and 1 (separators).
The
@rowsep
attribute is available on the following table elements:<colspec>
,<entry>
,<row>
,<table>
, and<tgroup>
. @scope
- Specifies that the current entry is a header for other table
entries. The following values are valid:
- col
- Indicates that the current entry is a header for all cells in the column.
- colgroup
- Indicates that the current entry is a header for all cells in the columns that are spanned by this entry.
- row
- Indicates that the current entry is a header for all cells in the row.
- rowgroup
- Indicates that the current entry is a header for all cells in the rows that are spanned by this entry.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
@translate
- Specifies whether the content of the element should be translated. The following values are valid: yes, no, and
-dita-use-conref-target.
See Element-by-element recommendations for translators for suggested processing defaults for each element.
@valign
(complex table attributes)- Specifies the vertical alignment of text in table entries. The following values are valid:
- bottom
- Indicates that text is aligned with the bottom of the table entry.
- middle
- Indicates that text is aligned with the middle of the table entry.
- top
- Indicates that text is aligned with the top of the table entry.
- -dita-use-conref-target
- See Using the -dita-use-conref-target value for more information.
The
@valign
attribute is available on the following table elements:<entry>
,<tbody>
,<thead>
, and<row>
. @xml:lang
- Specifies the language and optional locale of the content that is
contained in an element. Valid values are language tokens or the null string. The
@xml:lang
attribute and its values are described in the Extensible Markup Language 1.0 specification, fifth edition.