XML Table Examples


Example of table with:

Simple Table

Simple table example using the appropriate <thead> and <body> groups.

See this table rendered.


<table-wrap>
   <table frame="hsides" rules="groups">
      <thead>
         <tr>
            <td>Fatty acid</td>
            <td>Formula with LCPUFA supplementation</td>
            <td>Formula without supplementation</td>
         </tr>
      </thead>
      <tbody>
         <tr>
            <td>Linoleic acid</td>
            <td>11.5 to 12.8</td>
            <td>11.4</td>
         </tr>
         <tr>
            <td>αlinolenic acid</td>
            <td> ensp;0.6 to 0.65</td>
            <td>0.7</td>
         </tr>
         <tr>
            <td>Arachidonic acid</td>
            <td>0.3 to 0.4</td>
            <td><0.1</td>
         </tr>
         <tr>
            <td>Docosahexaenoic acid</td>
            <td>0.15 to 0.25</td>
            <td>0</td>
         </tr>
      </tbody>
   </table>
   <table-wrap-foot>
      <fn><p>LCPUFA=long chain polyunsaturated fatty acid.</p></fn>
   </table-wrap-foot>
</table-group>

BMJ 326-2003(7396):953 Table 1

Average Table

Table with 2-row head that has spanned horizontal rules in the first thead row. Use the <hr/> tag for rows that require a span rule. The frame and rules attributes on <table> provide the rules between the table groups. Footnotes are grouped in the <table-wrap-foot> tag.

See this table rendered.


<table-wrap id="T1">
   <caption>
      <p>Protein sequence coverage of selected proteins using the triple digestion protocol</p>
   </caption>
   <table frame="hsides" rules="groups">
      <thead>
         <tr>
            <td rowspan="2">Protein<hr/></td>
            <td colspan="2">Trypsin<fn id="TF1-150"><hr/></td>
            <td colspan="2">Subtilisin<fn id="TF1-150"><hr/></td>
            <td colspan="2">Elastase<fn id="TF1-150"><hr/></td>
            <td colspan="2">Combined<hr/></td>
         </tr>
         <tr>
            <td>% Coverage</td>
            <td>Peptides</td>
            <td>% Coverage</td>
            <td>Peptides</td>
            <td>%Coverage</td>
            <td>Peptides</td>
            <td>% Coverage</td>
            <td>Peptides</td>
         </tr>
      </thead>
      <tbody align="center">
         <tr>
            <td>Cdc2</td>
            <td>74.5</td>
            <td>75</td>
            <td>44.8</td>
            <td>41</td>
            <td>61.7</td>
            <td>62</td>
            <td>88.2</td>
            <td>171</td>
         </tr>
         <tr>
            <td>Cdc13</td>
            <td>56.0</td>
            <td>67</td>
            <td>58.3</td>
            <td>65</td>
            <td>53.1</td>
            <td>56</td>
            <td>91.7</td>
            <td>169</td>
         </tr>
         <!-- ... -->
      </tbody>
   </table>
   <table-wrap-foot>
      <fn id="TF1-150">
         <p>The proteases trypsin, subtilisin, and elastase were chosen because they consistently produced peptides with different specificity resulting in high total sequence coverage by tandem mass spectrometry.</p>
      </fn>
   </table-wrap-foot>
</table-wrap>

PNAS 99-2002(12):7900 Table 1

Note <label> and <caption> on the <table-wrap> and the <hr/> only where the columns are spanned.

See this table rendered.


<table-wrap id="T6">
   <label>
      <p>Table 6</p>
   </label>
   <caption>
      <p>Popperian refutation matrix for the seven discordant cases. The '+' indicates the cells favored by the discordant information, whereas the '-' designates non-favored cells.</p>
   </caption>
   <table frame="hsides" rules="groups">
      <thead>
         <tr>
            <td colspan="2" rowspan="2"><p/></td>
            <td colspan="7" ca="center"><p>Diagnostic Hypotheses<hr/></p></td>
         </tr>
         <tr>
            <td align="left">lt;p>C6</p></td>
            <td align="left"><p>C7</p></td>
            <td align="left"><p>C8</p></td>
            <td align="left"><p>Ra</p></td>
            <td align="left"><p>Me</p></td>
            <td align="left"><p>Ul</p></td>
            <td align="left"><p>Pn</p></td>
         </tr>
      </thead>
      <tbody>
         <tr>
            <td align="left" valign="top" rowspan="7"><p>Actual Diagnoses</p></td>
            <td align="left"><p>C6</p></td>
            <td align="left"><p>0</p></td>
	    <td align="left"><p>-</p></td>
	    <td align="left"><p>-</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>+</p></td>
	 </tr>
	 <tr>
	    <td align="left"><p>C7</p></td>
	    <td align="left"><p>-</p></td>
	    <td align="left"><p>0</p></td>
	    <td align="left"><p>-</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>-</p></td>
         </tr>
	 <tr>
	    <td align="left"><p>C8</p></td>
	    <td align="left"><p>-</p></td>
            <td align="left"><p>-</p></td>
	    <td align="left"><p>0</p></td>
            <td align="left"><p>-</p></td>
	    <td align="left"><p>-</p></td>
	    <td align="left"><p>+</p></td>
	    <td align="left"><p>-</p></td>
	 </tr>
	 <!-- ... -->
      </tbody>
   </table>
</table-wrap>

BMC Med Educ 3-2003(1):1 Table 6

Complex Table

Note the placement of the <hr/> tags in cells with column spanning. Alignment attributes on <tbody>, <thead>, and <tfoot> tags will be inherited by their children.

See this table rendered.


<table-wrap id="T4">
   <caption>
      <p>Numerical abnormalities in MII spermatocytes after exposure of male mice to ET</p>
   </caption>
   <table frame="hsides" rules="groups">
      <thead align="center">
         <tr>
            <td rowspan="3" valign="bottom">Dose, mg/kg</td>
            <td rowspan="3" valign="bottom">Harvest time</td>
            <td colspan="7" valign="bottom">Aneuploidy<hr/></td>
            <td colspan="3" valign="bottom">Diploidy (<italic>N</italic> = 40)<hr/></td>
         </tr>
         <tr>
            <td rowspan="2" valign="bottom">Total no. spermatocytes</td>
            <td colspan="2" valign="bottom">Hypohaploidy (<italic>N</italic> = 16–19)<hr/></td>
            <td colspan="2" valign="bottom">Haploidy (<italic>N</italic> = 20)<hr/></td>
            <td colspan="2" valign="bottom">Hyperhaploidy (<italic>N</italic> = 21)<hr/></td>
            <td rowspan="2" valign="bottom">Total no. spermatocytes</td>
            <td rowspan="2" valign="bottom">No.</td>
            <td rowspan="2" valign="bottom">%</td>
         </tr>
         <tr>
            <td>No.</td>
            <td>%</td>
            <td>No.</td>
            <td>%</td>
            <td>No.</td>
            <td>%</td>
         </tr>
      </thead>
      <tbody align="center">
         <tr>
            <td>0</td>
            <td></td>
            <td>257</td>
            <td>28</td>
            <td>10.9 ± 2.9</td>
            <td>228</td>
            <td>88.7</td>
            <td>1</td>
            <td>0.4 ± 0.4</td>
            <td>268</td>
            <td>11</td>
            <td>4.1  ± 1.4</td>
         </tr>
         <tr>
            <td>80</td>
            <td>6 h</td>
            <td>184</td>
            <td>15</td>
            <td>8.2 ± 2.3</td>
            <td>169</td>
            <td>91.8</td>
            <td>0</td>
            <td>0</td>
            <td>189</td>
            <td>5</td>
            <td>2.6 ± 0.8</td>
         </tr>
         <tr>
            <td>80</td>
            <td>16 h</td>
            <td>164</td>
            <td>27</td>
            <td>16.5 ± 4.8</td>
            <td>127</td>
            <td>77.4</td>
            <td>10</td>
            <td>6.1 ± 2.3<sup>*</sup></td>
            <td>187</td>
            <td>23</td>
            <td>12.3  ± 3.5<sup>*</sup></td>
         </tr>
         <!-- ... -->
      </tbody>
   </table>
   <table-foot-wrap>
      <fn><p>Results are presented ±SE. *, <italic>P</italic> < 0.01 vs. controls (χ<sup>2</sup>).</p></fn>
   </table-foot-wrap>
</table-wrap>

PNAS 98-2001(7):3952 Table 4

This example shows the use of <hr/> within <tbody> cells.

See this table rendered.


<table-wrap id="T4">
   <caption>
      <p>Pretreatment of mice with lysin (250 units) prevents streptococcal infections</p>
   </caption>
   <table frame="hsides" rules="groups">
      <thead align="center">
         <tr>
            <td colspan="3">Lysin treated<hr/></td>
            <td colspan="3">Buffer control<hr/></td>
         </tr>
         <tr>
            <td>Mouse</td>
            <td>Day 1</td>
            <td>Day 2</td>
            <td>Mouse</td>
            <td>Day 1</td>
            <td>Day 2</td>
         </tr>
      </thead>
      <tbody align="center">
         <tr>
            <td colspan="3" align="center">Crude lysin<hr/></td>
            <td colspan="3"/>
         </tr>
         <tr>
            <td>1</td>
            <td>0</td>
            <td>0</td>
            <td>1</td>
            <td>1</td>
            <td>14</td>
         </tr>
         <tr>
            <td>2</td>
            <td>0</td>
            <td>0</td>
            <td>2</td>
            <td>33</td>
            <td>250</td>
         </tr>
         <!-- ... -->
         <tr>
            <td colspan="3" align="center">Purified lysin<hr/></td>
            <td>11</td>
            <td>10</td>
            <td>>300</td>
         </tr>
         <tr>
            <td>11</td>
            <td>0</td>
            <td>0</td>
            <td>12</td>
            <td>0</td>
            <td>0</td>
         </tr>
         <!-- ... -->
         <tr>
            <td>Total</td>
            <td>6/21</td>
            <td>3/16</td>
            <td>Total</td>
            <td>12/17</td>
            <td>8/12</td>
         </tr>
      </tbody>
   </table>
   <table-foot-group>
      <fn><p>n.d., no data collected; indicated numbers are cfus.</p></fn>
      <fn id="TF4-150"><p>Isolated streptococci remained sensitive to lysin treatment <italic>in vitro.</italic></p></fn>
   </table-foot-group>
</table-wrap>

PNAS 98-2001(7):4107 Table 4

Table with Graphic

A table whose contents is only a graphic.

See this table rendered.


<table-wrap id="T1">
   <caption>
      <p>CCR5 Nt peptides</p>
   </caption>
   <table frame="hsides" rules="groups">
      <tbody align="center">
         <tr>
            <td>
               <graphic  xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="5762t1">
            </td>
         </tr>
      </tbody>
   </table>
</table-wrap>

PNAS 97-2000(11):5762 Table 1


PubMed Central
NCBI | NLM | NIH
Department of Health & Human Services
Freedom of Information Act | Disclaimer
Last updated: July 11, 2003