table (db.html.table)

table — A formal table in a document

Synopsis

Content Model

table (db.html.table) ::=

  • Sequence of:
    • caption (db.html.caption)
    • One of:
    • thead(db.html.thead)
    • tfoot(db.html.tfoot)
    • One of:
      • One or more of:
      • One or more of:

Attributes

Attributes:

  • border
  • cellpadding
  • cellspacing
  • floatstyle
  • frame (enumeration)
    • “void”
    • “above”
    • “below”
    • “hsides”
    • “lhs”
    • “rhs”
    • “vsides”
    • “box”
    • “border”
  • orient (enumeration)
    • “land”
    • “port”
  • pgwide (enumeration)
    • “0”
    • “1”
  • rules (enumeration)
    • “none”
    • “groups”
    • “rows”
    • “cols”
    • “all”
  • summary
  • tabstyle
  • width

Additional Constraints

  • example must not occur in the descendants of table
  • figure must not occur in the descendants of table
  • table must not occur in the descendants of table
  • table must not occur in the descendants of table
  • caution must not occur in the descendants of table
  • important must not occur in the descendants of table
  • note must not occur in the descendants of table
  • tip must not occur in the descendants of table
  • warning must not occur in the descendants of table
  • table must not occur in the descendants of table
  • informaltable must not occur in the descendants of table

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.

Attributes

border

FIXME:

cellpadding

FIXME:

cellspacing

FIXME:

class

FIXME:

floatstyle

Specifies style information to be used when rendering the float

frame

FIXME:

Enumerated values:

void

FIXME:

above

FIXME:

below

FIXME:

hsides

FIXME:

lhs

FIXME:

rhs

FIXME:

vsides

FIXME:

box

FIXME:

border

FIXME:

lang

FIXME:

onclick

FIXME:

ondblclick

FIXME:

onkeydown

FIXME:

onkeypress

FIXME:

onkeyup

FIXME:

onmousedown

FIXME:

onmousemove

FIXME:

onmouseout

FIXME:

onmouseover

FIXME:

onmouseup

FIXME:

orient

Specifies the orientation of the table

Enumerated values:

land

FIXME:

port

FIXME:

pgwide

Indicates if the element is rendered across the column or the page

Enumerated values:

0

The element should be rendered in the current text flow (with the flow column width).

1

The element should be rendered across the full text page.

rules

FIXME:

Enumerated values:

none

FIXME:

groups

FIXME:

rows

FIXME:

cols

FIXME:

all

FIXME:

style

FIXME:

summary

FIXME:

tabstyle

Specifies the table style

title

FIXME:

width

FIXME:

Children

The following elements occur in table: caption (db.html.caption), col, colgroup, tbody (db.html.tbody), tfoot (db.html.tfoot), thead (db.html.thead), tr.

See Also

colspec, entry, entrytbl, equation, example, figure, informalequation, informalexample, informalfigure, informaltable, row, spanspec, table (db.cals.table), tbody, tfoot, tgroup, thead

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example table</title>

<table xml:id="ex.htmltable">
<caption>Sample HTML Table</caption>
<thead>
  <tr>
    <td>Head 1</td>
    <td>Head 2</td>
  </tr>
</thead>
<tbody>
  <tr>
    <td>Body 1</td>
    <td>Body 2</td>
  </tr>
</tbody>
</table>

</article>
Table 2. Sample HTML Table
Head 1 Head 2
Body 1 Body 2

ChangeLog

This alpha reference page is $Revision: 1.5 $ published $Date: 2005/10/31 18:42:46 $.