entrytbl
entrytbl — A subtable appearing in place of an Entry in a table
Synopsis
Content Model
entrytbl ::=
(colspec*,spanspec*,thead?,tbody)
Attributes
Name | Type | Default | ||||||
rowsep | CDATA | None | ||||||
spanname | CDATA | None | ||||||
ondblclick | CDATA | None | ||||||
colname | CDATA | None | ||||||
cols | CDATA | Required | ||||||
onkeydown | CDATA | None | ||||||
onkeyup | CDATA | None | ||||||
onmouseup | CDATA | None | ||||||
onmouseover | CDATA | None | ||||||
align |
| None | ||||||
onkeypress | CDATA | None | ||||||
onmousedown | CDATA | None | ||||||
tgroupstyle | CDATA | None | ||||||
nameend | CDATA | None | ||||||
onclick | CDATA | None | ||||||
title | CDATA | None | ||||||
class | CDATA | None | ||||||
colsep | CDATA | None | ||||||
charoff | CDATA | None | ||||||
namest | CDATA | None | ||||||
onmouseout | CDATA | None | ||||||
onmousemove | CDATA | None | ||||||
style | CDATA | None | ||||||
xml:lang | NMTOKEN | None | ||||||
char | CDATA | None |
Description
The EntryTbl element allows for a single level of nesting within tables. This element is expected to obey the semantics of the CALS Table Model Document Type Definition, as specified by OASIS Technical Memorandum TM 9502:1995 .
An entry table may occur in a row instead of an Entry. EntryTbls have most of the elements of a table but may not include themselves, thus limiting nesting to a single level.
Processing expectations
The content of EntryTbl is formatted, as a table, to fit within the table cell that it occupies. Horizontal and vertical spanning may allow an EntryTbl to occupy several physical cells in the table that contains it.
If multiple EntryTbls occur in a single row, formatters that support EntryTbl are not required to ensure that subrows within the various tables are vertically aligned.
Many formatters are incapable of supporting EntryTbls. This is an interchange issue. See Appendix F, Interchanging DocBook Documents.
Attributes
align
Alignspecifies the horizontal alignment of theEntryTblin the cell in which it occurs. If no alignment is specified, it is inherited from theColSpecfor the current column, or theSpanSpecif this entry occurs in a span.char
Charspecifies the alignment character when theAlignattribute is set toChar.charoff
CharOffspecifies the percentage of the column's total width that should appear to the left of the first occurance of the character identified inCharwhen theAlignattribute is set toChar. This attribute is inherited from the relevantColSpecorSpanSpec.colname
ColNameidentifies the column in which this entry table should appear; it must have been previously defined in aColSpec.EntryTbls cannot be given out of order, the column referenced must be to the right of the lastEntryorEntryTblplaced in the current row. It is an error to specify both aColNameand aSpanName.cols
Colsspecifies the number of columns in theEntryTbl.colsep
If
ColSephas the value 1 (true), then a rule will be drawn to the right of thisEntryTbl. A value of 0 (false) suppresses the rule. The rule to the right of the last column in the table is controlled by theFrameattribute of the enclosingTableorInformalTableand theColSepof an entry in the last column in the table is ignored. If unspecified, this attribute is inherited from the the correspondingColSpecorSpanSpecand enclosing elements.nameend
NameEndis the name (defined in aColSpec) of the rightmost column of a span. OnEntryTbl, specifying bothNameStandNameEnddefines a horizontal span for the currentEntryTbl. (See alsoSpanName.)namest
NameSt(“name start”) is the name (defined in aColSpec) of the leftmost column of a span. OnEntryTbl, specifying bothNameStandNameEnddefines a horizontal span for the currentEntryTbl. (See alsoSpanName.)rowsep
If
RowSephas the value 1 (true), then a rule will be drawn below theEntryTbl. A value of 0 (false) suppresses the rule. The rule below the last row in the table is controlled by theFrameattribute of the enclosingTableorInformalTableand theRowSepof the last row is ignored. If unspecified, this attribute is inherited from enclosing elements.spanname
SpanNameis the name (defined in aSpanSpec) of a span. This cell will be rendered with the specified horizontal span.tgroupstyle
TGroupstyleholds the name of a table group style defined in a stylesheet that will be used to process this document.
Examples
<!DOCTYPE informaltable PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- entrytbl not supported, fake it in descrip.1 -->
<informaltable frame='all'>
<tgroup cols='3'>
<tbody>
<row>
<entry>a1</entry>
<entry>b1</entry>
<entry>c1</entry>
</row>
<row>
<entry>a2</entry>
<entrytbl cols='3'>
<tbody>
<row>
<entry>b2a1</entry>
<entry>b2b1</entry>
<entry>b2c1</entry>
</row>
<row>
<entry>b2a2</entry>
<entry>b2b2</entry>
<entry>b2c2</entry>
</row>
<row>
<entry>b2a3</entry>
<entry>b2b3</entry>
<entry>b2c3</entry>
</row>
</tbody>
</entrytbl>
<entry>c2</entry>
</row>
<row>
<entry>a3</entry>
<entry>b3</entry>
<entry>c3</entry>
</row>
</tbody>
</tgroup>
</informaltable>
The preceding table would look something like this when formatted:
a1 | b1 | c1 | ||
a2 | b2a1 | b2b1 | b2c1 | c2 |
b2a2 | b2b2 | b2c2 | ||
b2a3 | b2b3 | b2c3 | ||
a3 | b3 | c3 | ||