| 1 | <refentry id="entrytbl.element"> |
| 2 | <?dbhtml filename="entrytbl.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>entrytbl</secondary></indexterm> |
| 11 | <refentrytitle>entrytbl</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>entrytbl</refname> |
| 16 | <refpurpose>&entrytbl.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &entrytbl.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | The <sgmltag>EntryTbl</sgmltag> element allows for a single level of nesting |
| 24 | within tables. |
| 25 | &calssemantics; |
| 26 | </para> |
| 27 | |
| 28 | <para> |
| 29 | An entry table may occur in a row instead of an <sgmltag>Entry</sgmltag>. |
| 30 | <sgmltag>EntryTbl</sgmltag>s have most of the elements of a table but |
| 31 | may not include themselves, thus limiting nesting to a single |
| 32 | level. |
| 33 | </para> |
| 34 | |
| 35 | <refsect2><title>Processing expectations</title> |
| 36 | <para> |
| 37 | The content of <sgmltag>EntryTbl</sgmltag> is formatted, <emphasis>as a table</emphasis>, |
| 38 | to fit within the table cell that it occupies. Horizontal and vertical |
| 39 | spanning may allow an <sgmltag>EntryTbl</sgmltag> to occupy several physical cells |
| 40 | in the table that contains it. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | If multiple <sgmltag>EntryTbl</sgmltag>s occur in a single row, formatters |
| 45 | that support <sgmltag>EntryTbl</sgmltag> are not required to ensure that subrows |
| 46 | within the various tables are vertically aligned. |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | Many formatters are incapable of supporting <sgmltag>EntryTbl</sgmltag>s. |
| 51 | This is an interchange issue. See <xref linkend="app-interchange"/>. |
| 52 | </para> |
| 53 | </refsect2> |
| 54 | |
| 55 | |
| 56 | &entrytbl.parents.gen; |
| 57 | &entrytbl.children.gen; |
| 58 | </refsect1> |
| 59 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 60 | <variablelist> |
| 61 | <varlistentry><term>align</term> |
| 62 | <listitem> |
| 63 | <para> |
| 64 | <sgmltag class="attribute">Align</sgmltag> specifies the horizontal alignment |
| 65 | of the <sgmltag>EntryTbl</sgmltag> in the cell in which it occurs. If no |
| 66 | alignment is specified, it is inherited from the <sgmltag>ColSpec</sgmltag> |
| 67 | for the current column, or the <sgmltag>SpanSpec</sgmltag> if this entry |
| 68 | occurs in a span. |
| 69 | </para> |
| 70 | </listitem> |
| 71 | </varlistentry> |
| 72 | <varlistentry><term>char</term> |
| 73 | <listitem> |
| 74 | <para> |
| 75 | <sgmltag class="attribute">Char</sgmltag> specifies the alignment character when |
| 76 | the <sgmltag class="attribute">Align</sgmltag> attribute is set to <literal>Char</literal>. |
| 77 | </para> |
| 78 | </listitem> |
| 79 | </varlistentry> |
| 80 | <varlistentry><term>charoff</term> |
| 81 | <listitem> |
| 82 | <para> |
| 83 | <sgmltag class='attribute'>CharOff</sgmltag> specifies the percentage of the |
| 84 | column's total width that should appear to the left of the first |
| 85 | occurance of the character identified in <sgmltag |
| 86 | class='attribute'>Char</sgmltag> when the <sgmltag class='attribute'>Align</sgmltag> |
| 87 | attribute is set to <literal>Char</literal>. This attribute is inherited from |
| 88 | the relevant <sgmltag>ColSpec</sgmltag> or <sgmltag>SpanSpec</sgmltag>. |
| 89 | </para> |
| 90 | </listitem> |
| 91 | </varlistentry> |
| 92 | <varlistentry><term>colname</term> |
| 93 | <listitem> |
| 94 | <para> |
| 95 | <sgmltag class="attribute">ColName</sgmltag> identifies the column in which |
| 96 | this entry table should appear; it must have been previously defined in |
| 97 | a <sgmltag>ColSpec</sgmltag>. <sgmltag>EntryTbl</sgmltag>s cannot be given out of order, |
| 98 | the column referenced must be to the right of the last <sgmltag>Entry</sgmltag> |
| 99 | or <sgmltag>EntryTbl</sgmltag> placed in the current row. It is an error |
| 100 | to specify both a <sgmltag class="attribute">ColName</sgmltag> and a |
| 101 | <sgmltag class="attribute">SpanName</sgmltag>. |
| 102 | </para> |
| 103 | </listitem> |
| 104 | </varlistentry> |
| 105 | <varlistentry><term>cols</term> |
| 106 | <listitem> |
| 107 | <para> |
| 108 | <sgmltag class="attribute">Cols</sgmltag> specifies the number of columns |
| 109 | in the <sgmltag>EntryTbl</sgmltag>. |
| 110 | </para> |
| 111 | </listitem> |
| 112 | </varlistentry> |
| 113 | <varlistentry><term>colsep</term> |
| 114 | <listitem> |
| 115 | <para> |
| 116 | If <sgmltag class="attribute">ColSep</sgmltag> has the value 1 (true), then |
| 117 | a rule will be drawn to the right of this <sgmltag>EntryTbl</sgmltag>. |
| 118 | A value of 0 (false) suppresses the rule. |
| 119 | The rule to the right of the last column in the table is controlled by the |
| 120 | <sgmltag class="attribute">Frame</sgmltag> attribute of the enclosing |
| 121 | <sgmltag>Table</sgmltag> or <sgmltag>InformalTable</sgmltag> and the |
| 122 | <sgmltag class="attribute">ColSep</sgmltag> of an entry in the last column in the table |
| 123 | is ignored. If unspecified, this attribute is inherited from the |
| 124 | the corresponding <sgmltag>ColSpec</sgmltag> or <sgmltag>SpanSpec</sgmltag> and |
| 125 | enclosing elements. |
| 126 | </para> |
| 127 | </listitem> |
| 128 | </varlistentry> |
| 129 | <varlistentry><term>nameend</term> |
| 130 | <listitem> |
| 131 | <para> |
| 132 | <sgmltag class="attribute">NameEnd</sgmltag> is the name (defined in a |
| 133 | <sgmltag>ColSpec</sgmltag>) of the rightmost column of a span. |
| 134 | On <sgmltag>EntryTbl</sgmltag>, specifying both <sgmltag class="attribute">NameSt</sgmltag> |
| 135 | and <sgmltag class="attribute">NameEnd</sgmltag> defines a horizontal span for the |
| 136 | current <sgmltag>EntryTbl</sgmltag>. |
| 137 | (See also <sgmltag class="attribute">SpanName</sgmltag>.) |
| 138 | </para> |
| 139 | </listitem> |
| 140 | </varlistentry> |
| 141 | <varlistentry><term>namest</term> |
| 142 | <listitem> |
| 143 | <para> |
| 144 | <sgmltag class='attribute'>NameSt</sgmltag> (<quote>name start</quote>) is the name |
| 145 | (defined in a <sgmltag>ColSpec</sgmltag>) of the leftmost column of a span. |
| 146 | On <sgmltag>EntryTbl</sgmltag>, specifying both <sgmltag |
| 147 | class='attribute'>NameSt</sgmltag> and <sgmltag class='attribute'>NameEnd</sgmltag> |
| 148 | defines a horizontal span for the current <sgmltag>EntryTbl</sgmltag>. (See |
| 149 | also <sgmltag class='attribute'>SpanName</sgmltag>.) |
| 150 | </para> |
| 151 | </listitem> |
| 152 | </varlistentry> |
| 153 | <varlistentry><term>rowsep</term> |
| 154 | <listitem> |
| 155 | <para> |
| 156 | If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a |
| 157 | rule will be drawn below the <sgmltag>EntryTbl</sgmltag>. A value of 0 (false) |
| 158 | suppresses the rule. The rule below the last row in the table is |
| 159 | controlled by the <sgmltag class="attribute">Frame</sgmltag> attribute of the |
| 160 | enclosing <sgmltag>Table</sgmltag> or <sgmltag>InformalTable</sgmltag> and the |
| 161 | <sgmltag class="attribute">RowSep</sgmltag> of the last row is ignored. If |
| 162 | unspecified, this attribute is inherited from enclosing elements. |
| 163 | </para> |
| 164 | </listitem> |
| 165 | </varlistentry> |
| 166 | <varlistentry><term>spanname</term> |
| 167 | <listitem> |
| 168 | <para> |
| 169 | <sgmltag class="attribute">SpanName</sgmltag> is the name (defined in a |
| 170 | <sgmltag>SpanSpec</sgmltag>) of a span. This cell will be rendered with the |
| 171 | specified horizontal span. |
| 172 | </para> |
| 173 | </listitem> |
| 174 | </varlistentry> |
| 175 | <varlistentry><term>tgroupstyle</term> |
| 176 | <listitem> |
| 177 | <para> |
| 178 | <sgmltag class="attribute">TGroupstyle</sgmltag> holds the name of a |
| 179 | table group style defined in a stylesheet that |
| 180 | will be used to process this document. |
| 181 | </para> |
| 182 | </listitem> |
| 183 | </varlistentry> |
| 184 | </variablelist> |
| 185 | </refsect1> |
| 186 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 187 | &entrytbl.seealso.gen; |
| 188 | </refsect1> |
| 189 | <refsect1><title>Examples</title> |
| 190 | |
| 191 | <informalexample role="example-source"> |
| 192 | <programlisting>&entrytbl.example.1.txt;</programlisting> |
| 193 | </informalexample> |
| 194 | |
| 195 | <para> |
| 196 | The preceding table would look something like this when formatted: |
| 197 | </para> |
| 198 | <informaltable frame="all"> |
| 199 | <tgroup cols='5'> |
| 200 | <colspec colnum='2' colname="c2"/> |
| 201 | <colspec colnum='4' colname="c4"/> |
| 202 | <spanspec spanname="hspan" namest="c2" nameend="c4"/> |
| 203 | <tbody> |
| 204 | <row> |
| 205 | <entry>a1</entry> |
| 206 | <entry spanname="hspan">b1</entry> |
| 207 | <entry>c1</entry> |
| 208 | </row> |
| 209 | <row> |
| 210 | <entry morerows="2">a2</entry> |
| 211 | <entry>b2a1</entry> |
| 212 | <entry>b2b1</entry> |
| 213 | <entry>b2c1</entry> |
| 214 | <entry morerows="2">c2</entry> |
| 215 | </row> |
| 216 | <row> |
| 217 | <entry>b2a2</entry> |
| 218 | <entry>b2b2</entry> |
| 219 | <entry>b2c2</entry> |
| 220 | </row> |
| 221 | <row> |
| 222 | <entry>b2a3</entry> |
| 223 | <entry>b2b3</entry> |
| 224 | <entry>b2c3</entry> |
| 225 | </row> |
| 226 | <row> |
| 227 | <entry>a3</entry> |
| 228 | <entry spanname="hspan">b3</entry> |
| 229 | <entry>c3</entry> |
| 230 | </row> |
| 231 | </tbody> |
| 232 | </tgroup> |
| 233 | </informaltable> |
| 234 | |
| 235 | &entrytbl.example.seealso.gen; |
| 236 | </refsect1> |
| 237 | </refentry> |
| 238 |