docbook:table

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
annotations optional
arch optional
audience optional
border xs:NMTOKEN optional
cellpadding optional
cellspacing optional
class optional
colsep restriction of xs:token optional
condition optional
conformance optional
dir restriction of xs:token optional
floatstyle optional
frame restriction of xs:token optional
label optional
lang optional
linkend xs:IDREF optional
onclick optional
ondblclick optional
onkeydown optional
onkeypress optional
onkeyup optional
onmousedown optional
onmousemove optional
onmouseout optional
onmouseover optional
onmouseup optional
orient restriction of xs:token optional
os optional
pgwide restriction of xs:token optional
remap optional
revision optional
revisionflag restriction of xs:token optional
role optional
rowheader restriction of xs:token optional
rowsep restriction of xs:token optional
rules restriction of xs:token optional
security optional
shortentry restriction of xs:token optional
style optional
summary optional
tabstyle optional
title optional
tocentry restriction of xs:token optional
userlevel optional
vendor optional
version optional
width optional
wordsize optional
xlink:actuate xlink:actuateType optional
xlink:arcrole xlink:arcroleType optional
xlink:href xlink:hrefType optional
xlink:role xlink:roleType optional
xlink:show xlink:showType optional
xlink:title xlink:titleAttrType optional
xlink:type xlink:typeType optional
xml:base xs:anyURI optional
See http://www.w3.org/TR/xmlbase/ for
information about this attribute.
xml:id xs:ID optional
See http://www.w3.org/TR/xml-id/ for
information about this attribute.
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.
xreflabel optional

Used By

Source

<xs:element name="table">
  <xs:complexType>
    <xs:choice>
      <xs:sequence>
        <xs:element minOccurs="0" ref="docbook:info"/>
        <xs:sequence>
          <xs:element ref="docbook:title"/>
          <xs:element minOccurs="0" ref="docbook:titleabbrev"/>
        </xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="docbook:indexterm"/>
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="docbook:textobject"/>
        <xs:choice>
          <xs:element maxOccurs="unbounded" ref="docbook:mediaobject"/>
          <xs:element maxOccurs="unbounded" ref="docbook:tgroup"/>
        </xs:choice>
      </xs:sequence>
      <xs:sequence>
        <xs:element ref="docbook:caption"/>
        <xs:choice>
          <xs:element minOccurs="0" maxOccurs="unbounded" ref="docbook:col"/>
          <xs:element minOccurs="0" maxOccurs="unbounded" ref="docbook:colgroup"/>
        </xs:choice>
        <xs:element minOccurs="0" ref="docbook:thead"/>
        <xs:element minOccurs="0" ref="docbook:tfoot"/>
        <xs:choice>
          <xs:element maxOccurs="unbounded" ref="docbook:tbody"/>
          <xs:element maxOccurs="unbounded" ref="docbook:tr"/>
        </xs:choice>
      </xs:sequence>
    </xs:choice>
    <xs:attribute name="role"/>
    <xs:attribute name="label"/>
    <xs:attributeGroup ref="docbook:db.common.attributes"/>
    <xs:attributeGroup ref="docbook:db.common.linking.attributes"/>
    <xs:attribute name="tabstyle"/>
    <xs:attribute name="floatstyle"/>
    <xs:attribute name="orient">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="land"/>
          <xs:enumeration value="port"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="colsep">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rowsep">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="frame">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="all"/>
          <xs:enumeration value="bottom"/>
          <xs:enumeration value="none"/>
          <xs:enumeration value="sides"/>
          <xs:enumeration value="top"/>
          <xs:enumeration value="topbot"/>
          <xs:enumeration value="void"/>
          <xs:enumeration value="above"/>
          <xs:enumeration value="below"/>
          <xs:enumeration value="hsides"/>
          <xs:enumeration value="lhs"/>
          <xs:enumeration value="rhs"/>
          <xs:enumeration value="vsides"/>
          <xs:enumeration value="box"/>
          <xs:enumeration value="border"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="pgwide">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="shortentry">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="tocentry">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0"/>
          <xs:enumeration value="1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rowheader">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="firstcol"/>
          <xs:enumeration value="norowheader"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="class"/>
    <xs:attribute name="style"/>
    <xs:attribute name="title"/>
    <xs:attribute name="lang"/>
    <xs:attribute name="onclick"/>
    <xs:attribute name="ondblclick"/>
    <xs:attribute name="onmousedown"/>
    <xs:attribute name="onmouseup"/>
    <xs:attribute name="onmouseover"/>
    <xs:attribute name="onmousemove"/>
    <xs:attribute name="onmouseout"/>
    <xs:attribute name="onkeypress"/>
    <xs:attribute name="onkeydown"/>
    <xs:attribute name="onkeyup"/>
    <xs:attribute name="summary"/>
    <xs:attribute name="width"/>
    <xs:attribute name="border" type="xs:NMTOKEN"/>
    <xs:attribute name="rules">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="none"/>
          <xs:enumeration value="groups"/>
          <xs:enumeration value="rows"/>
          <xs:enumeration value="cols"/>
          <xs:enumeration value="all"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="cellspacing"/>
    <xs:attribute name="cellpadding"/>
  </xs:complexType>
</xs:element>

Sample

< section xmlns = "http://docbook.org/ns/docbook" xml:id = "introduction-schemas" >

< title>

Schema jungle

</ title>

< para>

Schemas for DocBook V5.0 are available in several formats at

< link xl:href = "http://www.oasis-open.org/docbook/xml/5.0/" />

(or the mirror at

< link xl:href = "http://docbook.org/xml/5.0/" />

).Only the RELAX NG schema is normativeand it is preferred over the other schema languages. However, for yourconvenience there are also DTD and W3C XML Schema versions provided for DocBookV5.0. But please note that neither the DTD nor the W3C XML schema are able tocapture all the constraints of DocBook V5.0. This mean that adocument that validates against the DTD or XML schema is not necessarilyvalid against the RELAX NG schema and thus may not be a validDocBook V5.0 document. See

< xref linkend = "t.schema-comparison" />

for summary of constraints that are checked by different schemas.

</ para>

< para>

DTD and W3C XML Schema versions of the DocBook V5.0 grammar are provided as a convenience for users who want to use DocBook V5.0 with legacy tools that don't support RELAX NG. Authors are encouraged to switch to RELAX NG based tools as soon as possible, or at least to validate documents against the RELAX NG schema before further processing.

</ para>

< para>

Some document constraints can't be expressed in schema languageslike RELAX NG or W3C XML Schema. To check for these additionalconstraints DocBook V5.0 uses Schematron. We recommend that youvalidate your document against both the RELAX NG andSchematron schemas.

</ para>

< table xml:id = "t.schema-comparison" >

< title>

Schema Comparison

</ title>

< tgroup cols = "6" >

< colspec colwidth = "4*" />

< colspec colwidth = "1*" align = "center" />

< colspec colwidth = "1*" align = "center" />

< colspec colwidth = "1*" align = "center" />

< colspec colwidth = "1*" align = "center" />

< colspec colwidth = "1*" align = "center" />

< thead>

< row>

< entry>

Description

</ entry>

< entry>

DTD

</ entry>