htmltblx.mod 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <!-- ...................................................................... -->
  2. <!-- DocBook XML HTML Table Module V4.5 ................................... -->
  3. <!-- File htmltblx.mod .................................................... -->
  4. <!-- Copyright 2003-2006 ArborText, Inc., Norman Walsh, Sun Microsystems,
  5. Inc., and the Organization for the Advancement of Structured Information
  6. Standards (OASIS).
  7. $Id: htmltblx.mod 6340 2006-10-03 13:23:24Z nwalsh $
  8. Permission to use, copy, modify and distribute the DocBook XML DTD
  9. and its accompanying documentation for any purpose and without fee
  10. is hereby granted in perpetuity, provided that the above copyright
  11. notice and this paragraph appear in all copies. The copyright
  12. holders make no representation about the suitability of the DTD for
  13. any purpose. It is provided "as is" without expressed or implied
  14. warranty.
  15. If you modify the DocBook XML DTD in any way, except for declaring and
  16. referencing additional sets of general entities and declaring
  17. additional notations, label your DTD as a variant of DocBook. See
  18. the maintenance documentation for more information.
  19. Please direct all questions, bug reports, or suggestions for
  20. changes to the [email protected] mailing list. For more
  21. information, see http://www.oasis-open.org/docbook/.
  22. -->
  23. <!-- ...................................................................... -->
  24. <!-- This module contains the definitions for elements that are
  25. isomorphic to the HTML elements. One could argue we should
  26. instead have based ourselves on the XHTML Table Module, but the
  27. HTML one is more like what browsers are likely to accept today
  28. and users are likely to use.
  29. This module has been developed for use with the DocBook V4.5
  30. "union table model" in which elements and attlists common to both
  31. models are defined (as the union) in the CALS table module by
  32. setting various parameter entities appropriately in this file.
  33. In DTD driver files referring to this module, please use an entity
  34. declaration that uses the public identifier shown below:
  35. <!ENTITY % htmltbl PUBLIC
  36. "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN"
  37. "htmltblx.mod">
  38. %htmltbl;
  39. See the documentation for detailed information on the parameter
  40. entity and module scheme used in DocBook, customizing DocBook and
  41. planning for interchange, and changes made since the last release
  42. of DocBook.
  43. -->
  44. <!--======================= XHTML Tables =======================================-->
  45. <!ENTITY % html.coreattrs
  46. "%common.attrib;
  47. class CDATA #IMPLIED
  48. style CDATA #IMPLIED
  49. title CDATA #IMPLIED"
  50. >
  51. <!-- Does not contain lang or dir because they are in %common.attribs -->
  52. <![%sgml.features;[
  53. <!ENTITY % i18n "">
  54. ]]>
  55. <!ENTITY % i18n
  56. "xml:lang NMTOKEN #IMPLIED"
  57. >
  58. <!ENTITY % events
  59. "onclick CDATA #IMPLIED
  60. ondblclick CDATA #IMPLIED
  61. onmousedown CDATA #IMPLIED
  62. onmouseup CDATA #IMPLIED
  63. onmouseover CDATA #IMPLIED
  64. onmousemove CDATA #IMPLIED
  65. onmouseout CDATA #IMPLIED
  66. onkeypress CDATA #IMPLIED
  67. onkeydown CDATA #IMPLIED
  68. onkeyup CDATA #IMPLIED"
  69. >
  70. <!ENTITY % attrs "%html.coreattrs; %i18n; %events;">
  71. <!ENTITY % cellhalign
  72. "align (left|center|right|justify|char) #IMPLIED
  73. char CDATA #IMPLIED
  74. charoff CDATA #IMPLIED"
  75. >
  76. <!ENTITY % cellvalign
  77. "valign (top|middle|bottom|baseline) #IMPLIED"
  78. >
  79. <!--doc:A group of columns in an HTML table.-->
  80. <!ELEMENT colgroup %ho; (col)*>
  81. <!--doc:Specifications for a column in an HTML table.-->
  82. <!ELEMENT col %ho; EMPTY>
  83. <!--doc:A row in an HTML table.-->
  84. <!ELEMENT tr %ho; (th|td)+>
  85. <!--doc:A table header entry in an HTML table.-->
  86. <!ELEMENT th %ho; (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
  87. <!--doc:A table ntry in an HTML table.-->
  88. <!ELEMENT td %ho; (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
  89. <!ATTLIST colgroup
  90. %attrs;
  91. span CDATA "1"
  92. width CDATA #IMPLIED
  93. %cellhalign;
  94. %cellvalign;
  95. >
  96. <!ATTLIST col
  97. %attrs;
  98. span CDATA "1"
  99. width CDATA #IMPLIED
  100. %cellhalign;
  101. %cellvalign;
  102. >
  103. <!ATTLIST tr
  104. %attrs;
  105. %cellhalign;
  106. %cellvalign;
  107. bgcolor CDATA #IMPLIED
  108. >
  109. <!ATTLIST th
  110. %attrs;
  111. abbr CDATA #IMPLIED
  112. axis CDATA #IMPLIED
  113. headers IDREFS #IMPLIED
  114. scope (row|col|rowgroup|colgroup) #IMPLIED
  115. rowspan CDATA "1"
  116. colspan CDATA "1"
  117. %cellhalign;
  118. %cellvalign;
  119. nowrap (nowrap) #IMPLIED
  120. bgcolor CDATA #IMPLIED
  121. width CDATA #IMPLIED
  122. height CDATA #IMPLIED
  123. >
  124. <!ATTLIST td
  125. %attrs;
  126. abbr CDATA #IMPLIED
  127. axis CDATA #IMPLIED
  128. headers IDREFS #IMPLIED
  129. scope (row|col|rowgroup|colgroup) #IMPLIED
  130. rowspan CDATA "1"
  131. colspan CDATA "1"
  132. %cellhalign;
  133. %cellvalign;
  134. nowrap (nowrap) #IMPLIED
  135. bgcolor CDATA #IMPLIED
  136. width CDATA #IMPLIED
  137. height CDATA #IMPLIED
  138. >
  139. <!-- ====================================================== -->
  140. <!-- Set up to read in the CALS model configured to
  141. merge with the XHTML table model -->
  142. <!-- ====================================================== -->
  143. <!ENTITY % tables.role.attrib "%role.attrib;">
  144. <!-- Add label and role attributes to table and informaltable -->
  145. <!ENTITY % bodyatt "
  146. floatstyle CDATA #IMPLIED
  147. rowheader (firstcol|norowheader) #IMPLIED
  148. %label.attrib;"
  149. >
  150. <!-- Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
  151. EntryTbl, and Entry (and InformalTable element). -->
  152. <!ENTITY % secur "
  153. %common.attrib;
  154. class CDATA #IMPLIED
  155. style CDATA #IMPLIED
  156. title CDATA #IMPLIED
  157. %i18n;
  158. %events;
  159. %tables.role.attrib;">
  160. <!ENTITY % common.table.attribs
  161. "%bodyatt;
  162. %secur;">
  163. <!-- Content model for Table (that also allows HTML tables) -->
  164. <!ENTITY % tbl.table.mdl
  165. "((blockinfo?,
  166. (%formalobject.title.content;),
  167. (%ndxterm.class;)*,
  168. textobject*,
  169. (graphic+|mediaobject+|tgroup+))
  170. |(caption, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+)))">
  171. <!ENTITY % informal.tbl.table.mdl
  172. "(textobject*,
  173. (graphic+|mediaobject+|tgroup+))
  174. | ((col*|colgroup*), thead?, tfoot?, (tbody+|tr+))">
  175. <!-- Attributes for Table (including HTML ones) -->
  176. <!-- N.B. rules = (none | groups | rows | cols | all) but it can't be spec'd -->
  177. <!-- that way because 'all' already occurs in a different enumeration in -->
  178. <!-- CALS tables (frame). -->
  179. <!ENTITY % tbl.table.att '
  180. tabstyle CDATA #IMPLIED
  181. tocentry %yesorno.attvals; #IMPLIED
  182. shortentry %yesorno.attvals; #IMPLIED
  183. orient (port|land) #IMPLIED
  184. pgwide %yesorno.attvals; #IMPLIED
  185. summary CDATA #IMPLIED
  186. width CDATA #IMPLIED
  187. border CDATA #IMPLIED
  188. rules CDATA #IMPLIED
  189. cellspacing CDATA #IMPLIED
  190. cellpadding CDATA #IMPLIED
  191. align (left|center|right) #IMPLIED
  192. bgcolor CDATA #IMPLIED
  193. '>
  194. <!ENTITY % tbl.frame.attval "void|above|below|hsides|lhs|rhs|vsides|box|border|
  195. top|bottom|topbot|all|sides|none">
  196. <!-- Allow either objects or inlines; beware of REs between elements. -->
  197. <!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">
  198. <!-- thead, tfoot, and tbody are defined in both table models,
  199. so we set up parameter entities to define union models for them
  200. -->
  201. <!ENTITY % tbl.hdft.mdl "(tr+|(colspec*,row+))">
  202. <!ENTITY % tbl.tbody.mdl "(tr+|row+)">
  203. <!ENTITY % tbl.valign.attval "top|middle|bottom|baseline">
  204. <!-- End of DocBook XML HTML Table Module V4.5 ............................ -->
  205. <!-- ...................................................................... -->