Tables
Capture each table (graphical or XML) in a table-wrap element.
//table-wrap[@id]
Capture the table-wrap element according to the placement indicator in the manuscript, or (if there is no such indicator) after the paragraph in which it is cited.
A table-wrap element may only be a child of a p element if it is within a list or a footnote.
Give each table-wrap element an id.
Capture the label for a table in a label element, using the format 'Table 1'.
Capture the caption for a table in a caption element.
Capture the table data in a graphic element (for a graphical table) or in a table element (for an XML-encoded table).
In an XML-encoded table, use a colgroup element as a container to hold column descriptions for groups of columns in a table, and describe a column's features in a col element. Use a thead element to contain information about table's columns, and a tbody element to contain rows of table data. Use a tr element to act as a container for a row of table cells.
Capture header cells:
- in a th element when the cell is non-empty;
- in a td element when the cell is empty.
Use a td element to capture any data cell.
Within a th element or a non-empty td element, capture a scope attribute to specify the cells for which the element provides header information. Use:
- scope="col" if the element acts as a header for cells in the same column in following rows.
- scope="row" if the element acts as a header for cells in the same row in following columns.
- scope="colgroup" if the element acts as a header for cells in the same group of columns in the following rows; specify the number of columns in the group by using the colspan attribute.
- scope="rowgroup" if the element acts as a header for cells in the same group of rows in the following columns specify the number of rows in the group by using the rowspan attribute.
To dispel any ambiguity in the relationship between header and data cells:
- use an id attribute to identify a single header cell;
- in a data cell, use a headers attribute to refer to the id value of the parent header;
- for accessibility purposes, refer to the specific instructions for how to capture these attributes according to the type of table that can be found on the corresponding Web Accessibility Initiative (WAI) webpage about tables.
Capture multiple tables that are grouped and referenced together in a table-wrap-group element.
Graphical table
<table-wrap id="bty104-t1" orientation="portrait" position="float">
<label>Table 1</label>
<caption><p>Major non-genetic risk factors</p></caption>
<graphic xlink:href="MDV295TB1.png" mimetype="image">
<alt-text>Alt text goes here</alt-text>
</graphic>
</table-wrap>
Simple XML-encoded table
<table-wrap id="bty104-t2" orientation="portrait" position="float">
<label>Table 2</label>
<caption><p>Major non-genetic risk factors</p></caption>
<table>
<thead>
<tr>
<th scope="col">Factor</th>
<th scope="col">Relative risk</th>
<th scope="col">Attributable fraction</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tobacco</td>
<td>2</td>
<td>11%–32%</td>
</tr>
<tr>
<td><italic>Helicobacter pylori</italic> infection</td>
<td>1.5</td>
<td>4%–25%</td>
</tr>
<tr>
<td>Non-O-blood group</td>
<td>1.4</td>
<td>13%–19%</td>
</tr>
<tr>
<td>Diabetes mellitus</td>
<td>1.4–2.2</td>
<td>1%–16%</td>
</tr>
</tbody>
</table>
</table-wrap>
Table with subheading rows
In this example, a table consists of a number of Panels
. The header row of each
panel is a tr element within the tbody,
containing a th element for the subheading.
<table-wrap id="bty104-t3" position="float">
<label>Table 3</label>
<caption>
<p>Tests of differences in premerger versus postmerger MMDA spreads</p>
</caption>
<table>
<colgroup span="7">
<col align="left" span="1"/>
<col align="center" span="1"/>
<col align="center" span="1"/>
<col align="center" span="1"/>
<col align="center" span="1"/>
<col align="center" span="1"/>
<col align="center" span="1"/>
</colgroup>
<thead>
<tr>
<th scope="col">Merger status</th>
<th align="center" colspan="2" scope="colgroup">Before</th>
<th align="center" colspan="2" scope="colgroup">During</th>
<th align="center" colspan="2" scope="colgroup">After</th>
</tr>
<tr>
<th scope="col">Bank type</th>
<th scope="col">SB</th>
<th scope="col">LMB</th>
<th scope="col">SB</th>
<th scope="col">LMB</th>
<th scope="col">SB</th>
<th scope="col">LMB</th>
</tr>
</thead>
<tbody>
<tr>
<td/>
<th align="center" colspan="6" scope="colgroup">
Panel A: LMBs have deposits exceeding $10 billion, SBs have at least 75% of deposits in one market
</th>
</tr>
<tr>
<td/>
<th align="center" colspan="6" scope="colgroup">
Premerger small bank comparison (forty-eight observations)
</th>
</tr>
<tr>
<th scope="colgroup" colspan="6">Mean</th>
<td>−0.028</td>
<td>−0.080</td>
<td>−0.000</td>
<td>−0.056</td>
<td>−0.065</td>
<td>−0.040</td>
</tr>
<tr>
<th scope="colgroup" colspan="6">
<italic>t</italic>-test (<italic>p</italic>-value)
</th>
<td>(0.437)</td>
<td>(0.677)</td>
<td>(0.853)</td>
<td>(0.491)</td>
<td>(0.767)</td>
<td>(0.889)</td>
</tr>
<!-- additional rows omitted -->
</tbody>
</table>
</table-wrap>
Multi-column layout (within a book)
Capture book content with the typecode Multi-column
in a
table element with attribute
content-type="multi-column".
| Typecode | content-type value |
|---|---|
| Multi-column |
multi-column
|
<table-wrap id="workid-UKRAI10JL5MB-book-part-3-table-wrap-1">
<table content-type="multi-column">
<colgroup span="1">
<col align="left" span="1"/>
<col align="left" span="1"/>
<col align="left" span="1"/>
</colgroup>
<tbody>
<tr>
<td>01</td>
<td>Emm:</td>
<td>Bud couldn't e:ven eat his breakfast. He o:rdererd he waited</td>
</tr>
<tr>
<td>02</td>
<td/>
<td>forty five minutes'n he'a:dtuh be out there to tee off so I</td>
</tr>
<tr>
<td>03</td>
<td/>
<td>gave it to uh: (.) Karen's: liddle bo:y</td>
</tr>
<tr>
<td>04</td>
<td/>
<td>(0.7)</td>
</tr>
<tr>
<td>05</td>
<td>Emm:</td>
<td>((swallow)) I mean that's how bad the service was .hhh (.)</td>
</tr>
</tbody>
</table>
</table-wrap>
Linguistic tabular example
Capture book content with the typecode Tabular Linguistics
in a
table element with attribute
content-type="multi-column".
| Typecode | content-type value |
|---|---|
| Tabular Linguistics |
multi-column
|
<table-wrap id="workid-USAC0029927-book-part-3-table-wrap-1">
<label>(2)</label>
<table content-type="multi-column">
<colgroup span="1">
<col align="left" span="1"/>
<col align="left" span="1"/>
<col align="left" span="1"/>
<col align="left" span="1"/>
<col align="left" span="1"/>
</colgroup>
<tbody>
<tr>
<td>wole</td>
<td>hoc-o</td>
<td>beƛ’e</td>
<td>hanq’u-q’ale-l</td>
<td>b-iχ<sup>w</sup>ad-o,</td>
</tr>
<tr>
<td>wait</td>
<td>leave-<sc>IMP</sc></td>
<td>lamb(III)[<sc>SG.ABS</sc>]</td>
<td>family-child-<sc>DAT</sc></td>
<td>III.<sc>SG</sc>-slaughter-<sc>IMP</sc></td>
</tr>
</tbody>
</table>
</table-wrap>
Table with source attribution
Capture the source attribution in an attrib element that is a child of a table-wrap-foot element.
<table-wrap id="workid-UKRAI10JL5MB-book-part-4-table-wrap-16">
<label>Table 4.17</label>
<caption>
<title>Internal Citations</title>
</caption>
<table>
<colgroup span="1">
<col align="left" span="1"/>
<col align="left" span="1"/>
</colgroup>
<thead>
<tr>
<th>Focus of Citation</th>
<th>Sample Citation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Conceptual/Idea</td>
<td>Physicians and other medical professionals
personally use humor as a means of coping with the uncertainty that
surrounds the medical profession (Bosk, 1996; Wanzer, Booth-Butterfield,
& Booth-Butterfield, 1997).</td>
</tr>
<tr>
<td>Researcher</td>
<td>Fitzpatrick (1993) described patient
satisfaction as an “emotional link to healthcare.”</td>
</tr>
<tr>
<td>Chronology</td>
<td>In 1991, Booth-Butterfield and
Booth-Butterfield identified the concept of humor orientation,
otherwise referred to as HO.</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<attrib>Source: Wrench, et al., <italic>Quantitative Research Methods for Communication.</italic>
New York: Oxford University Press, 2019.</attrib>
</table-wrap-foot>
</table-wrap>