Table

Name

Table -- A formal table in a document

Synopsis

Content Model

Table ::=
(((Title,TitleAbbrev?),
  (IndexTerm)*,
  (Graphic+|MediaObject+|TGroup+)))

Attributes

Common attributes

Name

Type

Default

LabelCDATANone
pgwideNUMBERNone
rowsepNUMBERNone
shortentryNUMBERNone
colsepNUMBERNone
tabstyleNMTOKENNone
frame

Enumeration:

all
bottom
none
sides
top
topbot

None
orient

Enumeration:

land
port

None
tocentryNUMBERNone

Tag Minimization

Both the start- and end-tags are required for this element.

Parameter Entities

%admon.mix;%bookcomponent.content;%component.mix;
%divcomponent.mix;%footnote.exclusion;%formal.class;
%formal.exclusion;%glossdef.mix;%highlights.exclusion;
%para.mix;%qandaset.mix;%refcomponent.mix;
%sidebar.mix;%tbl.table.excep;%tbl.table.name;

Description

The Table element identifies a formal table. DocBook uses the CALS table model, which describes tables geometrically using rows, columns, and cells.

Tables may include column headers and footers, but there is no provision for row headers.

Processing expectations

Formatted as a displayed block. 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.

Parents

These elements contain Table: Answer, Appendix, Article, BiblioDiv, Bibliography, BlockQuote, Callout, Caution, Chapter, Glossary, GlossDef, GlossDiv, Important, Index, ListItem, MsgExplan, MsgText, Note, Para, PartIntro, Preface, Procedure, QandADiv, QandASet, Question, RefSect1, RefSect2, RefSect3, RefSynopsisDiv, Sect1, Sect2, Sect3, Sect4, Sect5, Section, SetIndex, Sidebar, SimpleSect, Step, Tip, Warning.

Children

The following elements occur in Table: Graphic, IndexTerm, MediaObject, tgroup, Title, TitleAbbrev.

In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.

In some contexts, the following elements are excluded: IndexTerm.

Attributes

Label

Label specifies an identifying string for presentation purposes.

Generally, an explicit Label attribute is used only if the processing system is incapable of generating the label automatically. If present, the Label is normative; it will used even if the processing system is capable of automatic labelling.

colsep

If ColSep has the value 1 (true), then a rule will be drawn to the right of all columns in this table. A value of 0 (false) suppresses the rule. The rule to the right of the last column in the table is controlled by the Frame attribute, not the ColSep.

frame

Frame specifies how the table is to be framed.

orient

Orient specifies the orientation of the Table. An orientation of Port is the "upright", the same orientation as the rest of the text flow. An orientation of Land is 90 degrees counterclockwise from the upright orientation.

pgwide

If Pgwide has the value 0 (false), then the Table is rendered in the current text flow (with flow column width). A value of 1 (true) specifies that the table should be rendered across the full text page.

rowsep

If RowSep has the value 1 (true), then a rule will be drawn below all the rows in the Table (unless other, interior elements, suppress some or all of the rules). A value of 0 (false) suppresses the rule. The rule below the last row in the table is controlled by the Frame attribute and the RowSep of the last row is ignored.

shortentry

If ShortEntry has the value 1 (true), then the Table's TitleAbbrev will be used in the LoT, Index, etc. A value of 0 (false) indicates that the full Title should be used in those places.

tabstyle

TabStyle holds the name of a table style defined in a stylesheet (e.g., a FOSI) that will be used to process this document.

tocentry

If ToCEntry has the value 1 (true), then the Table will appear in a generated List of Tables. The default value of 0 (false) indicates that it will not.

See Also

colspec, entry, entrytbl, Equation, Example, Figure, InformalEquation, InformalExample, InformalFigure, InformalTable, row, spanspec, tbody, tfoot, tgroup, thead

Examples

<!DOCTYPE table PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<table frame=all><title>Sample Table</title>
<tgroup cols=5 align=left colsep=1 rowsep=1>
<colspec colname=c1>
<colspec colname=c2>
<colspec colname=c3>
<colspec colnum=5 colname=c5>
<spanspec spanname=hspan namest=c1 nameend=c2 align=center>
<spanspec spanname=bspan namest=c2 nameend=c3 align=center>
<thead>
<row>
  <entry spanname=hspan>Horizontal Span</entry>
  <entry>a3</entry>
  <entry>a4</entry>
  <entry>a5</entry>
</row>
</thead>
<tfoot>
<row>
  <entry>f1</entry>
  <entry>f2</entry>
  <entry>f3</entry>
  <entry>f4</entry>
  <entry>f5</entry>
</row>
</tfoot>
<tbody>
<row>
  <entry>b1</entry>
  <entry>b2</entry>
  <entry>b3</entry>
  <entry>b4</entry>
  <entry morerows=1 valign=middle><para>  <!-- Pernicous Mixed Content -->
  Vertical Span</para></entry>
</row>
<row>
  <entry>c1</entry>
  <entry spanname=bspan morerows=1 valign=bottom>Span Both</entry>
  <entry>c4</entry>
</row>
<row>
  <entry>d1</entry>
  <entry>d4</entry>
  <entry>d5</entry>
</row>
</tbody>
</tgroup>
</table>

Table 1. Sample Table

Horizontal Spana3a4a5
b1b2b3b4

Vertical Span

c1Span Bothc4
d1d4d5
f1f2f3f4f5

Copyright © 1999 O'Reilly & Associates, Inc. All rights reserved.


HIVE: All information for read only. Please respect copyright!
Hosted by hive КГБ: Киевская городская библиотека