<table-wrap>

Table Wrapper

Wrapper element for a complete table, including the tabular material (rows and columns), caption (including title), footnotes, and alternative descriptions of the table for purposes of accessibility.

Remarks

Table Content: This element has been designed to capture a construct named “table”, whether that structure contains an explicit <table> element or contains non-tabular structures such as graphics, lists, or paragraphs. Many publishers associate table captions and table numbers with material that is not explicitly tabular. Within the <table-wrap> element, row and column tags that describe the table cells should be defined by either the <table> element of the NISO JATS table model (based on and designed to be converted easily to the XHTML 1.1 table model) or, less typically, by the OASIS XML Exchange (CALS) table model.
Related Resource:
Within the <table-wrap> element, the row and column tags that describe the table cells are typically defined by the NISO JATS table model or the OASIS XML Exchange (CALS) table model.
Design Note: Many journal tag sets use an element called “Table Footnote” (with a tag such as <tblfn>) for footnotes inside a table. This Tag Set uses <fn> inside tables, as well as everywhere else, relying instead on context to differentiate table footnotes. Footnotes inside a <table-wrap> are assumed to be footnotes to the table and, as part of the table, are displayed at the bottom of the table, usually as part of the <table-wrap-foot>, rather than at the bottom of the page or otherwise separated from the display of the table.
Position: The @position attribute may be used to indicate whether a <table-wrap> must be anchored at its exact location within the text or whether it may float, for example: to the top of the next page, into the next column, to the end of a logical file, or within a separate window.
Associating Supplementary Data with a Table: When the data (such as a spreadsheet or dataset) associated with a document has been described using a <supplementary-material> element, then a table (<table-wrap>) can use an internal <xref> to point to that <supplementary-material>. This provides a mechanism to expose the data behind the table. For example, assume that a table (<table-wrap>) is associated with three pieces of supplementary material (each described in a <supplementary-material> element). Three cross references (<xref>) can be embedded in the table tagging to associate the table with all three supplementary items, which may be datasets, additional figures or tables, spreadsheets, etc. Note that a table and its three supporting data objects are described in one table and three supplementary material objects connected by internal cross-references (<xref> elements) rather than as a table group (<table-wrap-group>) even if the 3 associated objects are also tables.
Each table (<table-wrap>) within a <table-wrap-group> may contain its own <xref> elements to make this internal connection. In addition, the table group as a whole may contain internal cross-references of its own. External connections can also be made using one or more <ext-link> elements within the table tagging.
Multi-language Figure/Tables: JATS provides several ways to tag tables, figures, etc. in multiple languages. The element <block-alternatives> can be used to hold two or more versions of the table or figure, each in a different language. It is also possible to place multiple <label> and <caption> elements inside a single figure or table, one label and caption for each language, differentiated by @xml:lang attributes. In the case of double labels and captions, the content of the figure is not repeated, only the labels and captions.
NISO JATS Table Processing Note: In building the NISO JATS table model from the XHTML model, the <caption> element was removed from within the <table> element, because, in the NISO JATS Tag Suite, the <caption> element has been made part of the <table-wrap> element.

Related Elements

The <table> element is an element should be defined by the NISO JATS table model, which is based on and designed to be converted easily to the XHTML 1.1 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, that is, both rows and columns as well as captions and footers. A full table (<table-wrap>) may or may not include an actual <table> element within it, since other constructions, such as 2-part lists, may also be given table titles, captions, etc.
OASIS CALS Table Note: The OASIS XML Exchange (CALS) table model has also been included in the NISO JATS Suite and may be used as an alternative table model. It is even possible, though not easy, to include two different table models in a JATS-based DTD, by using pseudo-namespaces with a fixed prefix to differentiate any name clashes. The XHTML-based table model is usually taken as primary (no namespace prefix) and the OASIS XML Exchange (CALS) table model set up to use pseudo-namespaces (prefix “oasis”) with an xmlns #FIXED attribute. For organizations that choose to use the OASIS table model instead of the more XHTML-like NISO JATS table model, a version of the Publishing DTD has been provided with that model (JATS-journalpublishing-oasis-article1.dtd). A separate Tag Library describing the OASIS table model elements, attributes, and parameter entities may be accessed at: https://jats.nlm.nih.gov/options/OASIS/tag-library/19990315/index.html

Attributes

Content Model

<!ELEMENT  table-wrap   %table-wrap-model;                           >

Expanded Content Model

((object-id)*, (label)*, (caption)*, (abstract)*, (kwd-group)*, (subj-group)*, (alt-text | long-desc | email | ext-link | uri)*, (disp-quote | speech | statement | verse-group | def-list | list | alternatives | chem-struct-wrap | code | disp-formula | graphic | media | preformat | table | xref)*, (table-wrap-foot | attrib | permissions)*)

Description

This element may be contained in:

Example 1

A table wrapper containing the label and caption for a <table>:
...
<table-wrap id="t2" orientation="portrait" position="float">
<label>Table II.</label>
<caption>
<p>Models to approximate the bound frequencies as waves 
in X→M (<inline-graphic id="g1" xlink:href="d1"/>: Rotational, 
<inline-graphic id="g2" xlink:href="d2"/>: Vibrate in <italic>y</italic> 
direction, <inline-graphic id="g3" xlink:href="d3"/>: Vibrate in
<italic>x</italic> direction, <inline-graphic id="g4" xlink:href="d4"/>: 
Vibrate mainly in <italic>y</italic> direction including a small 
portion of vibration in <italic>x</italic> direction, 
<inline-graphic id="g5" xlink:href="d5"/>: Vibrate mainly in 
<italic>x</italic> direction including a small portion of vibration 
in <italic>y</italic> direction).</p>
</caption>
<table border="1">...</table>
</table-wrap>
...

Example 2

A table wrapper showing the interior table:
...
<table-wrap id="TN0.170">
<caption>
<title>Patient Care at End of Follow Up</title>
<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>
</caption>
<table frame="box" rules="all" cellpadding="5">
<tbody>
<tr>
<th></th>
<th colspan="3" align="center"
rowspan="1">Institutional care</th>
<th></th>
<th colspan="2" align="center"
rowspan="1">&#x2003;Bed use (days)</th>
</tr>
<tr>
<td colspan="3"><hr/></td>
<td colspan="2"><hr/></td>
</tr>
<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></th>
<th></th>
<th align="center">Day hospital</th>
<th align="center">Control</th>
</tr>
<tr>
<td colspan="7"><hr/></td></tr>
<tr>
<td>Comprehensive care (5 trials)</td>
<td align="center">151/597<xref ref-type="table-fn"
rid="TF1-150"></xref></td>
<td align="center">159/584</td>
<td align="center">0.91 (0.70 to 1.19)</td>
<td></td>
<td align="center">20.5</td>
<td align="center">21.4</td></tr>
<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></td>
<td align="center">&#x2002;7.7</td>
<td align="center">11.1</td>
</tr>
<tr>
<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></td>
<td align="center">11.2</td>
<td align="center">11.7</td>
</tr>
<tr>
<td>Total</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></td>
<td align="center">15.0</td><td align="center">16.4</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn-group>
<fn id="TF1-150"><p>Data not available for 1 trial.</p></fn>
<fn id="TF1-151"><p>P&#x003C;0.05 (random effects model).</p></fn>
</fn-group>
</table-wrap-foot>
</table-wrap>
...

Example 3

A table linked to the data from which the table is derived:
...
<table-wrap id="table1">
<label>Table 1</label>
<caption>
<p>Steady-state kinetic analyses for each IGF1R protein.</p>
</caption>
...
<xref ref-type="supplementary-material" rid="source-data-3" />
</table-wrap>
...
<supplementary-material id="source-data-3" content-type="sdata" 
mimetype="text" mime-subtype="xlsx" xlink:href="source-data-3.xlsx">
<label>Supplementary File 3</label>
<caption>
<title>Representative curves of steady-state kinetic analyses 
for each IGF1R protein characterized</title>
<p>Each data point was performed in duplicate and is shown 
separately.</p>
</caption>
</supplementary-material>
...

Example 4

Table with captions in two languages:
...
<table-wrap id="t1">
 <label xml:lang="pt">Tabela 1</label>
 <label xml:lang="en">Table 1</label>
 <caption xml:lang="pt">
  <title>Matriz de análise política.</title>
 </caption>
 <caption xml:lang="en">
  <title>Political Analysis Matrix.</title>
 </caption>
 <table frame="hsides" rules="groups">
  ...
 </table>
 <table-wrap-foot>
  <attrib>Source: Prepared by authors from
   <xref ref-type="bibr" rid="B10">Monke and Pearson (1989)</xref>.
  </attrib>
 </table-wrap-foot>
</table-wrap>
...

Example 5

A table wrapper showing @headers attribute:
...
<table-wrap position="float" id="ch1.tab2" orientation="portrait">
 <label>Table B</label>
 <caption>...</caption>
 <table frame="hsides" rules="groups">
  <thead>
   <tr>
    <th id="hd_h_ch1.tab2_1_1_1_1" rowspan="2" valign="bottom" align="left"
        colspan="1" headers="hd_h_ch1.tab2_1_1_1_1"
        >Bariatric Procedure</th>
    <th id="hd_h_ch1.tab2_1_1_1_2" align="center" valign="bottom" 
        colspan="4" rowspan="1">Method of surgery</th>
   </tr>
   <tr>
    <th headers="hd_h_ch1.tab2_1_1_1_2" id="hd_h_ch1.tab2_1_1_2_1" 
        valign="bottom" align="left" rowspan="1" 
        colspan="1">Open only</th>
    <th headers="hd_h_ch1.tab2_1_1_1_2" id="hd_h_ch1.tab2_1_1_2_2" 
        valign="bottom" align="left" rowspan="1" 
        colspan="1">Laparoscopic only</th>
    <th headers="hd_h_ch1.tab2_1_1_1_2" id="hd_h_ch1.tab2_1_1_2_3" 
        valign="bottom" align="left" rowspan="1" 
        colspan="1">Either open or laparoscopic</th>
    <th headers="hd_h_ch1.tab2_1_1_1_2" id="hd_h_ch1.tab2_1_1_2_4" 
        valign="bottom" align="left" rowspan="1" 
        colspan="1">Not reported</th>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td headers="hd_h_ch1.tab2_1_1_1_1"  valign="top" 
        align="left" rowspan="1" colspan="1">AGB</td>
    <td headers="hd_h_ch1.tab2_1_1_1_2 hd_h_ch1.tab2_1_1_2_1" 
        valign="top" align="left" rowspan="1" colspan="1"/>
    <td headers="hd_h_ch1.tab2_1_1_1_2 hd_h_ch1.tab2_1_1_2_2" 
        valign="top" align="left" rowspan="1" colspan="1">23</td>
    <td headers="hd_h_ch1.tab2_1_1_1_2 hd_h_ch1.tab2_1_1_2_3" 
        valign="top" align="left" rowspan="1" colspan="1"/>
    <td headers="hd_h_ch1.tab2_1_1_1_2 hd_h_ch1.tab2_1_1_2_4" 
        valign="top" align="left" rowspan="1" colspan="1">1</td>
   </tr>
   ...
  </tbody>
 </table>
 <table-wrap-foot>...</table-wrap-foot>
</table-wrap>
...