Table (XHTML table model)


The rows and columns part of a full table. The standard XHTML table model has been used to take advantage of existing software for table handling. For more complete information on this table model, see the documentation for the HTML 4.0 (XHTML) table model. (Note: The <table> element is usually just part of what would be called a “table” in print; a full table may include a table caption, a table title, table footnotes, introductory paragraphs, etc., and is created using the <table-wrap> element.)


The standard XHMTL model has been modified to remove the <caption> element from within the <table> element, because, in the modular Archiving and Interchange DTD Suite, the <caption> element has been made part of the <table-wrap> element.

Historical Note: CALS Tables — As part of the 0.1 version of this DTD, the OASIS Interchange (CALS) table model was also included in the Suite, to prove that it was possible, though not easy, to include two different table models, by using pseudo-namespaces to differentiate any name clashes. Since there were indeed name clashes, the XHTML model was taken as primary (no name spaces) and the OASIS Exchange CALS model was set up to use pseudo-namespaces. Although all mention of the CALS model has been removed from this DTD and the Suite, the modules to make the CALS model possible are still shipped with the base Suite. The following changes were made to that model: the %titles; Parameter Entity for the OASIS table model has been set to the null string (""), since the table title <title> is also part of the <table-wrap>. Other than the addition of namespace prefixes, no other changes were made to the OASIS table content model.


alternate-form-of Alternate Form of Graphic, Media Object, Etc.
border Border (Frame) around a Table (XHTML table model)
cellpadding Cell Padding (XHTML table model)
cellspacing Cell Spacing (XHTML table model)
content-type Type of Content
frame Frame (XHTML table model)
id Identifier
rules Rules (XHTML table model)
summary Summary (XHTML table model)
width Width (XHTML table model; MathML 2.0 DTD)

Related Elements

The <table> element is an element defined by a public table model such as the XHTML table model. This element is not, in itself, a full table, but only the rows and columns portions of a table. A full table may have other features, such as a title, caption, table footnotes, etc. The <table-wrap> element contains the full table. A full table may or may not include a <table> element within it, since other constructions, such as 2-part lists, may also be given table titles, captions, etc.

Model Information

Content Model

<!ELEMENT %table.qname;  %table.content; >


The following, in order:

This element may be contained in:

<table-wrap> Table Wrapper

Tagged Example

<table-wrap id="TN0.170">
<p>Numbers of patients receiving institutional
care at the end of scheduled follow up and
use of hospital beds among those allocated
to day hospital or alternative services</p>

<th colspan="3" align="center"
rowspan="1">Institutional care</th>
<th colspan="2" align="center"
rowspan="1">&#x2003;Bed use (days)</th>
<td colspan="3"><hr/></td>
<td colspan="2"><hr/></td>
<tr><th>Control group</th>
<th align="center">Day hospital</th>
<th align="center">Control</th>
<th align="center">Odds ratio (95&#x0025; CI)</th>
<th align="center">Day hospital</th>
<th align="center">Control</th>
<td colspan="7"><hr/></td></tr>
<td>Comprehensive care (5 trials)</td>
<td align="center">151/597<xref ref-type="table-fn"
<td align="center">159/584</td>
<td align="center">0.91 (0.70 to 1.19)</td>
<td align="center">20.5</td>
<td align="center">21.4</td></tr>
<td>Domiciliary care (4 trials)</td>
<td align="center">20/216</td>
<td align="center">&#x2002;19/227</td>
<td align="center">1.61 (0.30 to 8.55)</td>
<td align="center">&#x2002;7.7</td>
<td align="center">11.1</td>
<td>No comprehensive care (3 trials)</td>
<td align="center">37/411</td>
<td align="center">&#x2002;66/403</td>
<td align="center">0.50<xref ref-type="table-fn"
rid="TF1-151"></xref> (0.26 to 0.96)</td>
<td align="center">11.2</td>
<td align="center">11.7</td>
<td align="center">208/1224</td>
<td align="center">244/1214</td>
<td align="center">0.77 (0.52 to 1.13)</td>
<td align="center">15.0</td><td align="center">16.4</td>
<fn id="TF1-150"><p>Data not available for 1 trial.</p>
<fn id="TF1-151"><p>P&#x003C;0.05 (random effects