tgroup

The <tgroup> element in a table contains column, row, spanning, header, and the body (<tbody>) of the table.
Deleted " and footer specifications", since DITA uses the OASIS interchange model, which doesn't include tfoot.

Contains

Note

These models represent only the default document types distributed by OASIS. Actual content models will differ with each new document type.
Doctype Content model
topic, map, concept, ditabase, glossary, glossentry, glossgroup, reference, task, bookmap, classifyMap, subjectScheme, machineryTask, learningAssessment, learningBookmap, learningContent, learningMap, learningOverview, learningPlan, learningSummary ( (colspec) (any number) then (thead) (optional) then tbody)

Contained by

Doctype Content model
topic (base), map (base), topic (technical content), map (technical content), concept, ditabase, glossary, glossentry, glossgroup, reference, task (strict), task (general), bookmap, classifyMap, subjectScheme, machineryTask, learningAssessment, learningBookmap, learningContent, learningMap, learningOverview, learningPlan, learningSummary table

Inheritance

- topic/tgroup

Example

See table.

Attributes

Name Description Data Type Default Value Required?
cols Indicates the number of columns in a <tgroup> in a table. NMTOKEN #REQUIRED Yes
colsep Column separator. A value of 0 indicates no separators; 1 indicates separators. NMTOKEN #IMPLIED No
rowsep Row separator. A value of 0 indicates no separators; 1 indicates separators. NMTOKEN #IMPLIED No
align Describes the alignment of text in a table column. Allowable values are:
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
Use the character specified on the char attribute for alignment.
-dita-use-​conref-​target
See Using the -dita-use-conref-target value for more information.
In DITA 1.0 and 1.1, char was defined as a legal value, but was not described. The 1.2 spec added a description for the "char" value (the value itself is not new).
(left | right | center | justify | char | -dita-use-​conref-​target) #IMPLIED No
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups) A set of related attributes, described in univ-atts attribute group
global-atts attribute group (xtrf, xtrc) A set of related attributes, described in global-atts attribute group
class, outputclass Common attributes described in Other common DITA attributes

Was this helpful?