File: table.docbook

package info (click to toggle)
docbook2odf 0.244-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 2,496 kB
  • ctags: 48
  • sloc: xml: 14,904; perl: 388; makefile: 318; sh: 20
file content (210 lines) | stat: -rw-r--r-- 3,856 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<article lang="sk">
  <title>Example tables</title>

  <subtitle>DocBook example with tables</subtitle>

  <section>
    <title>Simple tables</title>

    <para>After this paragraph is table</para>

    <table>
      <title>Title of table</title>

      <tgroup cols="2">
        <tbody>
          <row>
            <entry>row 1 entry 1</entry>

            <entry>row 1 entry 2</entry>
          </row>

          <row>
            <entry>row 2 entry 1</entry>

            <entry>row 2 entry 2</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

    <para>Before this paragraph is table</para>

    <table>
      <title>Table with 2 <constant>tgroup</constant>s</title>

      <tgroup cols="2">
        <tbody>
          <row>
            <entry>row 1 entry 1</entry>

            <entry>row 1 entry 2</entry>
          </row>

          <row>
            <entry>row 2 entry 1</entry>

            <entry>row 2 entry 2</entry>
          </row>
        </tbody>
      </tgroup>

      <tgroup cols="2">
        <tbody>
          <row>
            <entry>row 1 entry 1</entry>

            <entry>row 1 entry 2</entry>
          </row>

          <row>
            <entry>row 2 entry 1</entry>

            <entry>row 2 entry 2</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

    <table>
      <title>Table with header and footer</title>

      <tgroup cols="3">
        <thead>
          <row>
            <entry>H-A3</entry>

            <entry>H-B3</entry>

            <entry>H-C3</entry>
          </row>
        </thead>

        <tfoot>
          <row>
            <entry>F-A3</entry>

            <entry>F-B3</entry>

            <entry>F-C3</entry>
          </row>
        </tfoot>

        <tbody>
          <row>
            <entry>A1</entry>

            <entry>B1</entry>

            <entry>C1</entry>
          </row>

          <row>
            <entry>A2</entry>

            <entry>B2</entry>

            <entry>C2</entry>
          </row>

          <row>
            <entry>A3</entry>

            <entry>B3</entry>

            <entry>C3</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

    <table>
      <title>Table with morerows</title>

      <tgroup cols="2">
        <tbody>
          <row>
            <entry>row 1 entry 1</entry>

            <entry>row 1 entry 2</entry>
          </row>

          <row>
            <entry morerows="1">row 2/3 entry 1</entry>

            <entry>row 2 entry 2</entry>
          </row>

          <row>
            <entry>row 3 entry 2</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

    <table>
      <title>Table with spanned entries</title>

      <tgroup cols="3">
        <colspec colname="Col1" colnum="1" />

        <colspec colname="Col2" colnum="2" />

        <colspec colname="Col3" colnum="3" />

        <tbody>
          <row>
            <entry>row 1 entry 1</entry>

            <entry></entry>

            <entry>row 1 entry 2</entry>
          </row>

          <row>
            <entry nameend="Col2" namest="Col1">row 2 entry 1/2</entry>

            <entry></entry>
          </row>

          <row>
            <entry>row 3 entry 2</entry>

            <entry></entry>

            <entry>row 3 entry 2</entry>
          </row>
        </tbody>
      </tgroup>
    </table>

    <table border="1">
      <caption>HTML table</caption>

      <tr>
        <th>Head1</th>

        <th></th>

        <th></th>
      </tr>

      <tr>
        <td colspan="2"></td>

        <td></td>
      </tr>

      <tr>
        <td>sdsdfsdf</td>

        <td></td>

        <td></td>
      </tr>
    </table>
  </section>
</article>