1 <!-- ...................................................................... -->
2 <!-- DocBook XML HTML Table Module V4.3 ................................... -->
3 <!-- File htmltblx.mod .................................................... -->
5 <!-- Copyright 2003 ArborText, Inc., Norman Walsh, Sun Microsystems, Inc.,
6 and the Organization for the Advancement of Structured Information
9 $Id: htmltblx.mod,v 1.12 2004/03/31 10:40:22 nwalsh Exp $
11 Permission to use, copy, modify and distribute the DocBook XML DTD
12 and its accompanying documentation for any purpose and without fee
13 is hereby granted in perpetuity, provided that the above copyright
14 notice and this paragraph appear in all copies. The copyright
15 holders make no representation about the suitability of the DTD for
16 any purpose. It is provided "as is" without expressed or implied
19 If you modify the DocBook XML DTD in any way, except for declaring and
20 referencing additional sets of general entities and declaring
21 additional notations, label your DTD as a variant of DocBook. See
22 the maintenance documentation for more information.
24 Please direct all questions, bug reports, or suggestions for
25 changes to the docbook@lists.oasis-open.org mailing list. For more
26 information, see http://www.oasis-open.org/docbook/.
29 <!-- ...................................................................... -->
31 <!-- This module contains the definitions for elements that are
32 isomorphic to the HTML elements. One could argue we should
33 instead have based ourselves on the XHTML Table Module, but the
34 HTML one is more like what browsers are likely to accept today
35 and users are likely to use.
37 This module has been developed for use with the DocBook V4.3
38 "union table model" in which elements and attlists common to both
39 models are defined (as the union) in the CALS table module by
40 setting various parameter entities appropriately in this file.
42 In DTD driver files referring to this module, please use an entity
43 declaration that uses the public identifier shown below:
45 <!ENTITY % htmltbl PUBLIC
46 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN"
50 See the documentation for detailed information on the parameter
51 entity and module scheme used in DocBook, customizing DocBook and
52 planning for interchange, and changes made since the last release
56 <!--======================= XHTML Tables =======================================-->
58 <!ENTITY % html.coreattrs
65 <!-- Does not contain lang or dir because they are in %common.attribs -->
67 "xml:lang NMTOKEN #IMPLIED"
71 "onclick CDATA #IMPLIED
72 ondblclick CDATA #IMPLIED
73 onmousedown CDATA #IMPLIED
74 onmouseup CDATA #IMPLIED
75 onmouseover CDATA #IMPLIED
76 onmousemove CDATA #IMPLIED
77 onmouseout CDATA #IMPLIED
78 onkeypress CDATA #IMPLIED
79 onkeydown CDATA #IMPLIED
80 onkeyup CDATA #IMPLIED"
83 <!ENTITY % attrs "%html.coreattrs; %i18n; %events;">
86 "align (left|center|right|justify|char) #IMPLIED
88 charoff CDATA #IMPLIED"
92 "valign (top|middle|bottom|baseline) #IMPLIED"
95 <!ELEMENT colgroup (col)*>
97 <!ELEMENT tr (th|td)+>
98 <!ELEMENT th (%para.char.mix; | %tabentry.mix;)*>
99 <!ELEMENT td (%para.char.mix; | %tabentry.mix;)*>
121 bgcolor CDATA #IMPLIED
128 headers IDREFS #IMPLIED
129 scope (row|col|rowgroup|colgroup) #IMPLIED
134 nowrap (nowrap) #IMPLIED
135 bgcolor CDATA #IMPLIED
137 height CDATA #IMPLIED
144 headers IDREFS #IMPLIED
145 scope (row|col|rowgroup|colgroup) #IMPLIED
150 nowrap (nowrap) #IMPLIED
151 bgcolor CDATA #IMPLIED
153 height CDATA #IMPLIED
156 <!-- ====================================================== -->
157 <!-- Set up to read in the CALS model configured to
158 merge with the XHTML table model -->
159 <!-- ====================================================== -->
161 <!ENTITY % tables.role.attrib "%role.attrib;">
163 <!-- Add label and role attributes to table and informaltable -->
165 floatstyle CDATA #IMPLIED
169 <!-- Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
170 EntryTbl, and Entry (and InformalTable element). -->
179 %tables.role.attrib;">
181 <!ENTITY % common.table.attribs
185 <!-- Content model for Table (that also allows HTML tables) -->
186 <!ENTITY % tbl.table.mdl
188 (%formalobject.title.content;),
191 (graphic+|mediaobject+|tgroup+))
192 |(caption, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+)))">
194 <!ENTITY % informal.tbl.table.mdl
196 (graphic+|mediaobject+|tgroup+))
197 | ((col*|colgroup*), thead?, tfoot?, (tbody+|tr+))">
199 <!-- Attributes for Table (including HTML ones) -->
200 <!ENTITY % tbl.table.att '
201 tabstyle CDATA #IMPLIED
202 tocentry %yesorno.attvals; #IMPLIED
203 shortentry %yesorno.attvals; #IMPLIED
204 orient (port|land) #IMPLIED
205 pgwide %yesorno.attvals; #IMPLIED
206 summary CDATA #IMPLIED
208 border CDATA #IMPLIED
209 rules (none | groups | rows | cols | all) #IMPLIED
210 cellspacing CDATA #IMPLIED
211 cellpadding CDATA #IMPLIED
212 align (left|center|right) #IMPLIED
213 bgcolor CDATA #IMPLIED
216 <!ENTITY % tbl.frame.attval "void|above|below|hsides|lhs|rhs|vsides|box|border|
217 top|bottom|topbot|all|sides|none">
219 <!-- Allow either objects or inlines; beware of REs between elements. -->
220 <!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">
222 <!-- thead, tfoot, and tbody are defined in both table models,
223 so we set up parameter entities to define union models for them
226 <!ENTITY % tbl.hdft.mdl "(tr+|(colspec*,row+))">
227 <!ENTITY % tbl.tbody.mdl "(tr+|row+)">
228 <!ENTITY % tbl.valign.attval "top|middle|bottom|baseline">