7. Tables (table1, split)

7.1. Purpose

Provide elements for tables. Tables can in general be very complex. Here I have initially chosen for a very simple table, historically named table1. The idea is to have tables defined just by their rows and cells and let the styling do the format. The split element is in effect a one row/two cell table that divides the text into two columns.

7.2. Elements

7.2.1. table1

tag
purpose
attributes
child element
table1
define a simple table
optional border="true|false"
row
row
row within a table1
none
cell
cell
single cell in a table/row
optional colspan="num" and rowspan="num"
any from text.dtd

7.2.2. split

tag
purpose
attributes
child element
split
define split (two column) output
none
left and left
left
define left column
none
any from text.dtd
right
define right column
none
any from text.dtd

7.3. Example

7.3.1. Construct

437: <para>Table with border.</para> 438: <table1 border="true"> 439: <row> 440: <cell><strong>head1</strong></cell> 441: <cell><strong>head2</strong></cell> 442: <cell><strong>head3</strong></cell> 443: <cell><strong>head4</strong></cell> 444: </row> 445: <row> 446: <cell>row1/cell1</cell> 447: <cell>row1/cell2</cell> 448: <cell>row1/cell3</cell> 449: <cell>row1/cell4</cell> 450: </row> 451: <row> 452: <cell>row2/cell1</cell> 453: <cell colspan="2">spanning two columns</cell> 454: <cell>row2/cell4</cell> 455: </row> 456: <row> 457: <cell>row3/cell1</cell> 458: <cell>row3/cell2</cell> 459: <cell>row3/cell3</cell> 460: <cell>row3/cell4</cell> 461: </row> 462: </table1> 463: <para>Table without border.</para> 464: <table1> 465: <row> 466: <cell><strong>head1</strong></cell> 467: <cell><strong>head2</strong></cell> 468: <cell><strong>head3</strong></cell> 469: <cell><strong>head4</strong></cell> 470: </row> 471: <row> 472: <cell>row1/cell1</cell> 473: <cell>row1/cell2</cell> 474: <cell>row1/cell3</cell> 475: <cell rowspan="2">spanning two rows</cell> 476: </row> 477: <row> 478: <cell>row2/cell2</cell> 479: <cell>row2/cell3</cell> 480: <cell>row2/cell4</cell> 481: </row> 482: <row> 483: <cell>row3/cell1</cell> 484: <cell>row3/cell2</cell> 485: <cell>row3/cell3</cell> 486: <cell>row3/cell4</cell> 487: </row> 488: </table1> 489: 490: <para>Using split</para> 491: <split> 492: <left>This is the left side of split</left> 493: <right>This is the right side of split</right> 494: </split>

7.3.2. Result

Table with border.

head1
head2
head3
head4
row1/cell1
row1/cell2
row1/cell3
row1/cell4
row2/cell1
spanning two columns
row2/cell4
row3/cell1
row3/cell2
row3/cell3
row3/cell4

Table without border.

head1
head2
head3
head4
row1/cell1
row1/cell2
row1/cell3
spanning two rows
row2/cell2
row2/cell3
row2/cell4
row3/cell1
row3/cell2
row3/cell3
row3/cell4

Using split

This is the left side of split
This is the right side of split