







![]() |
|
![]() |
This element is used to arrange data in a table format with rows and columns. An optional title and table header can also be included.
Usage
A table consists of the following elements:
![]() |
---|
There are no provisions for spanning rows or columns as there is in HTML tables. As such, each row must contain the same number of columns. However, you can nest tables within an entry element which can be used to achieve a similar effect. |
Example
![]() |
|
---|---|
<para>This link takes you to <link xlink:href="#Row3Cell1">Row 3, Cell 1</link> in the first table.</para> <table> <title>A Simple Table with Title and Headers</title> <tableHeader> <row> <entry><para>Header 1</para></entry> <entry><para>Header 2</para></entry> <entry><para>Header 3</para></entry> </row> </tableHeader> <row> <entry><para>Row 1, Cell 1</para></entry> <entry><para>Row 1, Cell 2</para></entry> <entry><para>Row 1, Cell 3</para></entry> </row> <row> <entry><para>Row 2, Cell 1</para></entry> <entry><para>Row 2, Cell 2</para></entry> <entry><para>Row 2, Cell 3</para></entry> </row> <row> <entry address="Row3Cell1"><para>This entry has an <codeInline>address</codeInline> attribute that can be used as a link target.</para></entry> <entry><para>Row 3, Cell 2</para></entry> <entry><para>Row 3, Cell 3</para></entry> </row> </table> <table> <tableHeader> <row> <entry><para> </para></entry> <entry><para>A Nested Table Example</para></entry> </row> </tableHeader> <row> <entry><mediaLink><image xlink:href="98a8a8b7-c374-40c7-902a-91c947bf107c"/> </mediaLink></entry> <entry> <table> <row> <entry><para>Cell 1</para></entry> <entry><para>Cell 2</para></entry> <entry><para>Cell 3</para></entry> <entry><para>Cell 4</para></entry> </row> <row> <entry><para>Cell 5</para></entry> <entry><para>Cell 6</para></entry> <entry><para>Cell 7</para></entry> <entry><para>Cell 8</para></entry> </row> <row> <entry><para>Cell 9</para></entry> <entry><para>Cell 10</para></entry> <entry><para>Cell 11</para></entry> <entry><para>Cell 12</para></entry> </row> </table> <para>The table above doesn't have a <codeInline>tableHeader</codeInline>.</para> </entry> </row> </table> |
Example Output
This link takes you to Row 3, Cell 1 in the first table.
A Simple Table with Title and Headers
|
A Nested Table Example |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The table above doesn't have a tableHeader. |