PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/XML/xml/dtds/htmltblx.mod

#
Unknown | 237 lines | 197 code | 40 blank | 0 comment | 0 complexity | 936503eb072fae7c1ba11c1b59e6e9da MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!-- ...................................................................... -->
  2. <!-- DocBook XML HTML Table Module V4.4 ................................... -->
  3. <!-- File htmltblx.mod .................................................... -->
  4. <!-- Copyright 2003, 2004 ArborText, Inc., Norman Walsh, Sun Microsystems,
  5. Inc., and the Organization for the Advancement of Structured Information
  6. Standards (OASIS).
  7. $Id: htmltblx.mod,v 1.23 2005/01/27 13:52:00 nwalsh Exp $
  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 docbook@lists.oasis-open.org 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.4
  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.4//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. "id ID #IMPLIED
  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. <!ENTITY % i18n
  53. "xml:lang NMTOKEN #IMPLIED"
  54. >
  55. <!ENTITY % events
  56. "onclick CDATA #IMPLIED
  57. ondblclick CDATA #IMPLIED
  58. onmousedown CDATA #IMPLIED
  59. onmouseup CDATA #IMPLIED
  60. onmouseover CDATA #IMPLIED
  61. onmousemove CDATA #IMPLIED
  62. onmouseout CDATA #IMPLIED
  63. onkeypress CDATA #IMPLIED
  64. onkeydown CDATA #IMPLIED
  65. onkeyup CDATA #IMPLIED"
  66. >
  67. <!ENTITY % attrs "%html.coreattrs; %i18n; %events;">
  68. <!ENTITY % cellhalign
  69. "align (left|center|right|justify|char) #IMPLIED
  70. char CDATA #IMPLIED
  71. charoff CDATA #IMPLIED"
  72. >
  73. <!ENTITY % cellvalign
  74. "valign (top|middle|bottom|baseline) #IMPLIED"
  75. >
  76. <!ELEMENT colgroup (col)*>
  77. <!ELEMENT col EMPTY>
  78. <!ELEMENT tr (th|td)+>
  79. <!ELEMENT th (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
  80. <!ELEMENT td (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
  81. <!ATTLIST colgroup
  82. %attrs;
  83. span CDATA "1"
  84. width CDATA #IMPLIED
  85. %cellhalign;
  86. %cellvalign;
  87. >
  88. <!ATTLIST col
  89. %attrs;
  90. span CDATA "1"
  91. width CDATA #IMPLIED
  92. %cellhalign;
  93. %cellvalign;
  94. >
  95. <!ATTLIST tr
  96. %attrs;
  97. %cellhalign;
  98. %cellvalign;
  99. bgcolor CDATA #IMPLIED
  100. >
  101. <!ATTLIST th
  102. %attrs;
  103. abbr CDATA #IMPLIED
  104. axis CDATA #IMPLIED
  105. headers IDREFS #IMPLIED
  106. scope (row|col|rowgroup|colgroup) #IMPLIED
  107. rowspan CDATA "1"
  108. colspan CDATA "1"
  109. %cellhalign;
  110. %cellvalign;
  111. nowrap (nowrap) #IMPLIED
  112. bgcolor CDATA #IMPLIED
  113. width CDATA #IMPLIED
  114. height CDATA #IMPLIED
  115. >
  116. <!ATTLIST td
  117. %attrs;
  118. abbr CDATA #IMPLIED
  119. axis CDATA #IMPLIED
  120. headers IDREFS #IMPLIED
  121. scope (row|col|rowgroup|colgroup) #IMPLIED
  122. rowspan CDATA "1"
  123. colspan CDATA "1"
  124. %cellhalign;
  125. %cellvalign;
  126. nowrap (nowrap) #IMPLIED
  127. bgcolor CDATA #IMPLIED
  128. width CDATA #IMPLIED
  129. height CDATA #IMPLIED
  130. >
  131. <!-- ====================================================== -->
  132. <!-- Set up to read in the CALS model configured to
  133. merge with the XHTML table model -->
  134. <!-- ====================================================== -->
  135. <!ENTITY % tables.role.attrib "%role.attrib;">
  136. <!-- Add label and role attributes to table and informaltable -->
  137. <!ENTITY % bodyatt "
  138. floatstyle CDATA #IMPLIED
  139. rowheader (firstcol|norowheader) #IMPLIED
  140. %label.attrib;"
  141. >
  142. <!-- Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
  143. EntryTbl, and Entry (and InformalTable element). -->
  144. <!ENTITY % secur "
  145. %common.attrib;
  146. class CDATA #IMPLIED
  147. style CDATA #IMPLIED
  148. title CDATA #IMPLIED
  149. %i18n;
  150. %events;
  151. %tables.role.attrib;">
  152. <!ENTITY % common.table.attribs
  153. "%bodyatt;
  154. %secur;">
  155. <!-- Content model for Table (that also allows HTML tables) -->
  156. <!ENTITY % tbl.table.mdl
  157. "((blockinfo?,
  158. (%formalobject.title.content;),
  159. (%ndxterm.class;)*,
  160. textobject*,
  161. (graphic+|mediaobject+|tgroup+))
  162. |(caption, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+)))">
  163. <!ENTITY % informal.tbl.table.mdl
  164. "(textobject*,
  165. (graphic+|mediaobject+|tgroup+))
  166. | ((col*|colgroup*), thead?, tfoot?, (tbody+|tr+))">
  167. <!-- Attributes for Table (including HTML ones) -->
  168. <!-- N.B. rules = (none | groups | rows | cols | all) but it can't be spec'd -->
  169. <!-- that way because 'all' already occurs in a different enumeration in -->
  170. <!-- CALS tables (frame). -->
  171. <!ENTITY % tbl.table.att '
  172. tabstyle CDATA #IMPLIED
  173. tocentry %yesorno.attvals; #IMPLIED
  174. shortentry %yesorno.attvals; #IMPLIED
  175. orient (port|land) #IMPLIED
  176. pgwide %yesorno.attvals; #IMPLIED
  177. summary CDATA #IMPLIED
  178. width CDATA #IMPLIED
  179. border CDATA #IMPLIED
  180. rules CDATA #IMPLIED
  181. cellspacing CDATA #IMPLIED
  182. cellpadding CDATA #IMPLIED
  183. align (left|center|right) #IMPLIED
  184. bgcolor CDATA #IMPLIED
  185. '>
  186. <!ENTITY % tbl.frame.attval "void|above|below|hsides|lhs|rhs|vsides|box|border|
  187. top|bottom|topbot|all|sides|none">
  188. <!-- Allow either objects or inlines; beware of REs between elements. -->
  189. <!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">
  190. <!-- thead, tfoot, and tbody are defined in both table models,
  191. so we set up parameter entities to define union models for them
  192. -->
  193. <!ENTITY % tbl.hdft.mdl "(tr+|(colspec*,row+))">
  194. <!ENTITY % tbl.tbody.mdl "(tr+|row+)">
  195. <!ENTITY % tbl.valign.attval "top|middle|bottom|baseline">
  196. <!-- End of DocBook XML HTML Table Module V4.4 ............................ -->
  197. <!-- ...................................................................... -->