Debian Codegraph @

en/refpages/elements/table/refentry.xml

raw symbols SCIP
1 <refentry id="table.element">
2 <?dbhtml filename="table.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>table</secondary></indexterm>
11 <refentrytitle>table</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>table</refname>
16 <refpurpose>&table.purpose;</refpurpose>
17 </refnamediv>
18
19 &table.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 The <sgmltag>Table</sgmltag> element identifies a formal table. DocBook uses the
24 &CALS; table model, which describes tables geometrically using rows, columns,
25 and cells.
26 </para>
27
28 <para>
29 Tables may include column headers and footers, but there is no provision for
30 row headers.
31 </para>
32
33 <refsect2><title>Processing expectations</title>
34 <para>
35 &format.block; &calssemantics;
36 </para>
37 </refsect2>
38
39 <refsect2 role='fu' revision="5.0"><title>&FutureChanges;</title>
40 <para><indexterm><primary>DocBook DTD</primary><secondary>Changes for <acronym>V5.0</acronym></secondary>
41 </indexterm>The
42 <ulink url="http://www.oasis-open.org/specs/tm9901.html">OASIS
43 Exchange Table Model</ulink>
44 will replace the full OASIS Table Model.
45 </para>
46 </refsect2>
47
48 &table.parents.gen;
49 &table.children.gen;
50 </refsect1>
51
52 <refsect1 condition='ref.elem.attrdesc'><title>CALS Attributes</title>
53 <variablelist>
54 <varlistentry><term>colsep</term>
55 <listitem>
56 <para>
57 If <sgmltag class="attribute">ColSep</sgmltag> has the value 1 (true), then
58 a rule will be drawn to the right of all columns in this table.
59 A value of 0 (false) suppresses the rule.
60 The rule to the right of the last column in the table is controlled by the
61 <sgmltag class="attribute">Frame</sgmltag> attribute, not the
62 <sgmltag class="attribute">ColSep</sgmltag>.
63 </para>
64 </listitem>
65 </varlistentry>
66 <varlistentry><term>frame</term>
67 <listitem>
68 <para><sgmltag class="attribute">Frame</sgmltag> specifies how the table is to be framed:
69 </para>
70
71 <informaltable>
72 <tgroup cols="2">
73 <thead>
74 <row>
75 <entry>Value</entry><entry>Meaning</entry>
76 </row>
77 </thead>
78 <tbody>
79 <row>
80 <entry><sgmltag class="attvalue">all</sgmltag></entry>
81 <entry><para>Frame all four sides of the table. In some environments with limited
82 control over table border formatting, such as HTML, this may imply additional borders.
83 </para></entry>
84 </row>
85 <row>
86 <entry><sgmltag class="attvalue">bottom</sgmltag></entry>
87 <entry><para>Frame only the bottom of the table.</para></entry>
88 </row>
89 <row>
90 <entry><sgmltag class="attvalue">none</sgmltag></entry>
91 <entry><para>Place no border on the table. In some environments with limited
92 control over table border formatting, such as HTML, this may disable other borders as
93 well.</para></entry>
94 </row>
95 <row>
96 <entry><sgmltag class="attvalue">sides</sgmltag></entry>
97 <entry><para>Frame the left and right sides of the table.</para></entry>
98 </row>
99 <row>
100 <entry><sgmltag class="attvalue">top</sgmltag></entry>
101 <entry><para>Frame the top of the table.</para></entry>
102 </row>
103 <row>
104 <entry><sgmltag class="attvalue">topbot</sgmltag></entry>
105 <entry><para>Frame the top and bottom of the table.</para></entry>
106 </row>
107 </tbody>
108 </tgroup>
109 </informaltable>
110
111 <para>There is no way to obtain a border on only the starting edge
112 (left, in left-to-right writing systems) of the table.</para>
113
114 </listitem>
115 </varlistentry>
116 <varlistentry><term>label</term>
117 <listitem>
118 <para>
119 <sgmltag class='attribute'>Label</sgmltag> specifies an identifying string for presentation purposes.
120 </para>
121 <para>
122 Generally, an explicit <sgmltag class='attribute'>Label</sgmltag> attribute is
123 used only if the processing system is incapable of generating the label
124 automatically. If present, the <sgmltag class='attribute'>Label</sgmltag>
125 is normative; it will used even
126 if the processing system is capable of automatic labelling.
127 </para>
128 </listitem>
129 </varlistentry>
130 <varlistentry><term>orient</term>
131 <listitem>
132 <para>
133 <sgmltag class='attribute'>Orient</sgmltag> specifies the orientation of the
134 <sgmltag>Table</sgmltag>. An orientation of <literal>Port</literal> is
135 the <quote>upright</quote>, the same orientation as the rest of the text flow.
136 An orientation of <literal>Land</literal> is 90 degrees counterclockwise
137 from the upright orientation.
138 </para>
139 </listitem>
140 </varlistentry>
141 <varlistentry><term>pgwide</term>
142 <listitem>
143 <para>
144 If <sgmltag class="attribute">Pgwide</sgmltag> has the value 0 (false), then the
145 <sgmltag>Table</sgmltag> is rendered in the current text flow (with flow
146 column width). A value of 1 (true) specifies that the table should be
147 rendered across the full text page.
148 </para>
149 </listitem>
150 </varlistentry>
151 <varlistentry><term>rowsep</term>
152 <listitem>
153 <para>
154 If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a
155 rule will be drawn below all the rows in the <sgmltag>Table</sgmltag>
156 (unless other, interior elements, suppress some or all of the rules).
157 A value of 0 (false) suppresses the rule. The rule below the last row
158 in the table is controlled by the <sgmltag class="attribute">Frame</sgmltag>
159 attribute and the <sgmltag class="attribute">RowSep</sgmltag>
160 of the last row is ignored.
161 </para>
162 </listitem>
163 </varlistentry>
164 <varlistentry><term>shortentry</term>
165 <listitem>
166 <para>
167 If <sgmltag>ShortEntry</sgmltag> has the value 1 (true), then the
168 <sgmltag>Table</sgmltag>'s <sgmltag>TitleAbbrev</sgmltag> will be used in the
169 <sgmltag>LoT</sgmltag>, <sgmltag>Index</sgmltag>, etc. A value of 0 (false) indicates
170 that the full <sgmltag>Title</sgmltag> should be used in those places.
171 </para>
172 </listitem>
173 </varlistentry>
174 <varlistentry><term>tabstyle</term>
175 <listitem>
176 <para>
177 <sgmltag class="attribute">TabStyle</sgmltag> holds the name of a table style
178 defined in a stylesheet (e.g., a <acronym>FOSI</acronym>) that will be used
179 to process this document.
180 </para>
181 </listitem>
182 </varlistentry>
183 <varlistentry><term>tocentry</term>
184 <listitem>
185 <para>
186 If <sgmltag class="attribute">ToCEntry</sgmltag> has the value 1 (true), then the
187 <sgmltag>Table</sgmltag> will appear in a generated List of Tables.
188 The default value of 0 (false) indicates that it will not.
189 </para>
190 </listitem>
191 </varlistentry>
192 </variablelist>
193 </refsect1>
194
195 <refsect1 condition='ref.elem.attrdesc'><title>HTML Attributes</title>
196
197 <para>This element has the HTML event attributes.</para>
198
199 <variablelist>
200
201 <varlistentry><term>align</term>
202 <listitem>
203 <para>TBD.
204 </para>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry><term>bgcolor</term>
209 <listitem>
210 <para>TBD.
211 </para>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry><term>border</term>
216 <listitem>
217 <para>TBD.
218 </para>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry><term>cellpadding</term>
223 <listitem>
224 <para>TBD.
225 </para>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry><term>cellspacing</term>
230 <listitem>
231 <para>TBD.
232 </para>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry><term>class</term>
237 <listitem>
238 <para>TBD.
239 </para>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry><term>frame</term>
244 <listitem>
245 <para>TBD.
246 </para>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry><term>label</term>
251 <listitem>
252 <para>TBD.
253 </para>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry><term>rules</term>
258 <listitem>
259 <para>Controls the rules used inside the table. The legal values are
260 “none”, “groups”, “rows”, “cols”, and “all”. The DTD does not enforce this
261 constraint because it introduces a conflict in attribute values that violates an
262 SGML constraint.
263 </para>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry><term>shortentry</term>
268 <listitem>
269 <para>TBD.
270 </para>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry><term>summary</term>
275 <listitem>
276 <para>TBD.
277 </para>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry><term>tabstyle</term>
282 <listitem>
283 <para>TBD.
284 </para>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry><term>title</term>
289 <listitem>
290 <para>TBD.
291 </para>
292 </listitem>
293 </varlistentry>
294
295 </variablelist>
296 </refsect1>
297
298 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
299 &table.seealso.gen;
300 </refsect1>
301 <refsect1><title>Examples</title>
302
303 <informalexample role="example-source">
304 <programlisting>&table.example.1.txt;</programlisting>
305 </informalexample>
306
307 <anchor id="ex.os.table.1" role="HACK-ex.out.start"/>
308 &table.example.1.gen;
309 <anchor id="ex.oe.table.1" role="HACK-ex.out.end"/>
310
311 &table.example.seealso.gen;
312 </refsect1>
313 </refentry>
314