Debian Codegraph @

ru/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 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
52 <variablelist>
53 <varlistentry><term>colsep</term>
54 <listitem>
55 <para>
56 If <sgmltag class="attribute">ColSep</sgmltag> has the value 1 (true), then
57 a rule will be drawn to the right of all columns in this table.
58 A value of 0 (false) suppresses the rule.
59 The rule to the right of the last column in the table is controlled by the
60 <sgmltag class="attribute">Frame</sgmltag> attribute, not the
61 <sgmltag class="attribute">ColSep</sgmltag>.
62 </para>
63 </listitem>
64 </varlistentry>
65 <varlistentry><term>frame</term>
66 <listitem>
67 <para><sgmltag class="attribute">Frame</sgmltag> specifies how the table is to be framed:
68 </para>
69
70 <informaltable>
71 <tgroup cols="2">
72 <thead>
73 <row>
74 <entry>Value</entry><entry>Meaning</entry>
75 </row>
76 </thead>
77 <tbody>
78 <row>
79 <entry><sgmltag class="attvalue">all</sgmltag></entry>
80 <entry><para>Frame all four sides of the table. In some environments with limited
81 control over table border formatting, such as HTML, this may imply additional borders.
82 </para></entry>
83 </row>
84 <row>
85 <entry><sgmltag class="attvalue">bottom</sgmltag></entry>
86 <entry><para>Frame only the bottom of the table.</para></entry>
87 </row>
88 <row>
89 <entry><sgmltag class="attvalue">none</sgmltag></entry>
90 <entry><para>Place no border on the table. In some environments with limited
91 control over table border formatting, such as HTML, this may disable other borders as
92 well.</para></entry>
93 </row>
94 <row>
95 <entry><sgmltag class="attvalue">sides</sgmltag></entry>
96 <entry><para>Frame the left and right sides of the table.</para></entry>
97 </row>
98 <row>
99 <entry><sgmltag class="attvalue">top</sgmltag></entry>
100 <entry><para>Frame the top of the table.</para></entry>
101 </row>
102 <row>
103 <entry><sgmltag class="attvalue">topbot</sgmltag></entry>
104 <entry><para>Frame the top and bottom of the table.</para></entry>
105 </row>
106 </tbody>
107 </tgroup>
108 </informaltable>
109
110 <para>There is no way to obtain a border on only the starting edge
111 (left, in left-to-right writing systems) of the table.</para>
112
113 </listitem>
114 </varlistentry>
115 <varlistentry><term>label</term>
116 <listitem>
117 <para>
118 <sgmltag class='attribute'>Label</sgmltag> specifies an identifying string for presentation purposes.
119 </para>
120 <para>
121 Generally, an explicit <sgmltag class='attribute'>Label</sgmltag> attribute is
122 used only if the processing system is incapable of generating the label
123 automatically. If present, the <sgmltag class='attribute'>Label</sgmltag>
124 is normative; it will used even
125 if the processing system is capable of automatic labelling.
126 </para>
127 </listitem>
128 </varlistentry>
129 <varlistentry><term>orient</term>
130 <listitem>
131 <para>
132 <sgmltag class='attribute'>Orient</sgmltag> specifies the orientation of the
133 <sgmltag>Table</sgmltag>. An orientation of <literal>Port</literal> is
134 the <quote>upright</quote>, the same orientation as the rest of the text flow.
135 An orientation of <literal>Land</literal> is 90 degrees counterclockwise
136 from the upright orientation.
137 </para>
138 </listitem>
139 </varlistentry>
140 <varlistentry><term>pgwide</term>
141 <listitem>
142 <para>
143 If <sgmltag class="attribute">Pgwide</sgmltag> has the value 0 (false), then the
144 <sgmltag>Table</sgmltag> is rendered in the current text flow (with flow
145 column width). A value of 1 (true) specifies that the table should be
146 rendered across the full text page.
147 </para>
148 </listitem>
149 </varlistentry>
150 <varlistentry><term>rowsep</term>
151 <listitem>
152 <para>
153 If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a
154 rule will be drawn below all the rows in the <sgmltag>Table</sgmltag>
155 (unless other, interior elements, suppress some or all of the rules).
156 A value of 0 (false) suppresses the rule. The rule below the last row
157 in the table is controlled by the <sgmltag class="attribute">Frame</sgmltag>
158 attribute and the <sgmltag class="attribute">RowSep</sgmltag>
159 of the last row is ignored.
160 </para>
161 </listitem>
162 </varlistentry>
163 <varlistentry><term>shortentry</term>
164 <listitem>
165 <para>
166 If <sgmltag>ShortEntry</sgmltag> has the value 1 (true), then the
167 <sgmltag>Table</sgmltag>'s <sgmltag>TitleAbbrev</sgmltag> will be used in the
168 <sgmltag>LoT</sgmltag>, <sgmltag>Index</sgmltag>, etc. A value of 0 (false) indicates
169 that the full <sgmltag>Title</sgmltag> should be used in those places.
170 </para>
171 </listitem>
172 </varlistentry>
173 <varlistentry><term>tabstyle</term>
174 <listitem>
175 <para>
176 <sgmltag class="attribute">TabStyle</sgmltag> holds the name of a table style
177 defined in a stylesheet (e.g., a <acronym>FOSI</acronym>) that will be used
178 to process this document.
179 </para>
180 </listitem>
181 </varlistentry>
182 <varlistentry><term>tocentry</term>
183 <listitem>
184 <para>
185 If <sgmltag class="attribute">ToCEntry</sgmltag> has the value 1 (true), then the
186 <sgmltag>Table</sgmltag> will appear in a generated List of Tables.
187 The default value of 0 (false) indicates that it will not.
188 </para>
189 </listitem>
190 </varlistentry>
191 </variablelist>
192 </refsect1>
193 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
194 &table.seealso.gen;
195 </refsect1>
196 <refsect1><title>Examples</title>
197
198 <informalexample role="example-source">
199 <programlisting>&table.example.1.txt;</programlisting>
200 </informalexample>
201
202 <anchor id="ex.os.table.1" role="HACK-ex.out.start"/>
203 &table.example.1.gen;
204 <anchor id="ex.oe.table.1" role="HACK-ex.out.end"/>
205
206 &table.example.seealso.gen;
207 </refsect1>
208 </refentry>
209