Used to hold a complete table, that is, not only the rows and columns that make up a table, but also the table’s caption or title, list of table footnotes, alternative descriptions of the table for purposes of accessibility, etc.
This element has also been designed to capture a construct named “table” that contains just a graphic or a list, rather than the explicit rows and columns of a table element such as the XHTML <table> because many publishers associate table captions and numbers with material that is not explicitly tabular.
For a detailed discussion on the use of <table-wrap>, see Table and Table Wrapper.
Within the <table-wrap> element, the row and column tags that describe the table cells are defined by the XHTML table model.
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. In fact, an author can put both referenced footnotes and unreferenced paragraphs directly into the <table-wrap-foot>.
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.
<!ELEMENT table-wrap %table-wrap-model; >
((object-id)*, (caption)?, (alt-text | long-desc)*, (disp-quote | speech | statement | verse-group | def-list | list | alternatives | chem-struct-wrap | graphic | media | preformat | table)*, table-wrap-foot?, attrib?, permissions?)
The following, in order:
... <table-wrap id="TN0.170"> <caption><p>Numbers of patients receiving institutional care ...</p> </caption> <table> <tbody> <tr> <th></th> <th colspan="3" align="center" rowspan="1">Institutional care</th> <th></th> <th colspan="2" align="center" rowspan="1"> Bed use (days)</th> </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<0.05 (random effects model).</p></fn> </fn-group> </table-wrap-foot> </table-wrap> ...