table-eg2.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<informaltable>
<!-- Example mixing fixed and relative ('*') column widths -->
<tgroup cols="5" colsep="1" rowsep="1" align="left">
<colspec colname="c1" colwidth="*"/>
<colspec align="left" colwidth="2*"/>
<colspec align="right" colwidth="3*"/>
<colspec align="center"/>
<colspec align="center" colwidth="3cm"/>
<thead>
<row>
<entry>Column 1</entry>
<entry>Column 2</entry>
<entry>Column 3</entry>
<entry>Column 4</entry>
<entry>Column 5</entry>
</row>
</thead>
<tbody>
<row>
<entry>left aligned (tgroup level)
</entry><entry>left aligned
</entry><entry>right aligned
</entry><entry>centered cell
</entry><entry>in the centre
</entry></row>
<row>
<entry>proportional column (*)
</entry><entry>proportional column (2*)
</entry><entry>proportional column (3*)
</entry><entry>no specified width
</entry><entry>3 cm column width
</entry></row>
</tbody>
</tgroup>
</informaltable>