summaryrefslogtreecommitdiff
path: root/test/testdocs/table.017.xml
blob: 8013206b516bb5daf6739b3b94a12186cb22fc65 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
          "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<article>
<articleinfo>
<title>Unit Test: table.017</title>
<releaseinfo role="CVS">
$Id: table.017.xml 4613 2005-04-20 11:54:35Z nwalsh $
</releaseinfo>
<author><firstname>Norman</firstname><surname>Walsh</surname>
        <affiliation><address><email>ndw@nwalsh.com</email></address></affiliation>
</author>
</articleinfo>

<para>This test attempts to demonstrate the three hard cases:
horizontal spans, vertical spans, and missing entries.</para>

<informaltable frame="all">
<tgroup cols="4">
<colspec colname="b" colnum="2"/>
<colspec colname="c" colnum="3"/>
<colspec colname="d"/>
<spanspec spanname="cd" namest="c" nameend="d"/>
<tbody>
  <row>
    <entry>a1</entry>
    <entry morerows="1" namest="b" nameend="c">b1-c2</entry>
    <entry>d1</entry>
  </row>
  <row>
    <entry morerows="2">a2-a4</entry>
    <!-- b2, c2 spans from above -->
    <entry>d2</entry>
  </row>
  <row>
    <!-- a3 spans from above -->
    <entry>b3</entry>
    <entry>c3</entry>
    <entry>d3</entry>
  </row>
  <row>
    <!-- a4 spans from above -->
    <entry>b4</entry>
    <entry spanname="cd">c4-d4</entry>
  </row>
  <row>
    <entry>a5</entry>
    <entry>b5</entry>
    <!-- c4 is missing -->
    <entry colname="d">d5</entry>
  </row>
</tbody>
</tgroup>
</informaltable>

</article>