soextblx.dtd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <!-- XML EXCHANGE TABLE MODEL DECLARATION MODULE -->
  2. <!-- This set of declarations defines the XML version of the Exchange
  3. Table Model as of the date shown in the Formal Public Identifier
  4. (FPI) for this entity.
  5. This set of declarations may be referred to using a public external
  6. entity declaration and reference as shown in the following three
  7. lines:
  8. <!ENTITY % calstblx
  9. PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN">
  10. %calstblx;
  11. If various parameter entities used within this set of declarations
  12. are to be given non-default values, the appropriate declarations
  13. should be given before calling in this package (i.e., before the
  14. "%calstblx;" reference).
  15. -->
  16. <!-- The motivation for this XML version of the Exchange Table Model
  17. is simply to create an XML version of the SGML Exchange Table
  18. Model. By design, no effort has been made to "improve" the model.
  19. This XML version incorporates the logical bare minimum changes
  20. necessary to make the Exchange Table Model a valid XML DTD.
  21. It has been modified slightly for use in the combined HTML/CALS models
  22. supported by DocBook V4.3 and later.
  23. -->
  24. <!-- The XML version of the Exchange Table Model differs from
  25. the SGML version in the following ways:
  26. The following parameter entities have been removed:
  27. - tbl.table.excep, tbl.hdft.excep, tbl.row.excep, tbl.entry.excep
  28. There are no exceptions in XML. The following normative statement
  29. is made in lieu of exceptions: the exchange table model explicitly
  30. forbids a table from occurring within another table. If the
  31. content model of an entry includes a table element, then this
  32. cannot be enforced by the DTD, but it is a deviation from the
  33. exchange table model to include a table within a table.
  34. - tbl.hdft.name, tbl.hdft.mdl, tbl.hdft.excep, tbl.hdft.att
  35. The motivation for these elements was to change the table
  36. header/footer elements. Since XML does not allow element declarations
  37. to contain name groups, and the exchange table model does not
  38. allow a table to contain footers, the continued presence of these
  39. attributes seems unnecessary.
  40. The following parameter entity has been added:
  41. - tbl.thead.att
  42. This entity parameterizes the attributes on thead. It replaces
  43. the tbl.hdft.att parameter entity.
  44. Other miscellaneous changes:
  45. - Tag ommission indicators have been removed
  46. - Comments have been removed from declarations
  47. - NUMBER attributes have been changed to NMTOKEN
  48. - NUTOKEN attributes have been to changed to NMTOKEN
  49. - Removed the grouping characters around the content model
  50. parameter entry for the 'entry' element. This is necessary
  51. so that an entry can contain #PCDATA and be defined as an
  52. optional, repeatable OR group beginning with #PCDATA.
  53. -->
  54. <!-- This entity includes a set of element and attribute declarations
  55. that partially defines the Exchange table model. However, the model
  56. is not well-defined without the accompanying natural language
  57. description of the semantics (meanings) of these various elements,
  58. attributes, and attribute values. The semantic writeup, also available
  59. from SGML Open, should be used in conjunction with this entity.
  60. -->
  61. <!-- In order to use the Exchange table model, various parameter entity
  62. declarations are required. A brief description is as follows:
  63. ENTITY NAME WHERE USED WHAT IT IS
  64. %yesorno In ATTLIST of: An attribute declared value
  65. almost all elements for a "boolean" attribute
  66. %paracon In content model of: The "text" (logical content)
  67. <entry> of the model group for <entry>
  68. %titles In content model of: The "title" part of the model
  69. table element group for the table element
  70. %tbl.table.name In declaration of: The name of the "table"
  71. table element element
  72. %tbl.table-titles.mdl In content model of: The model group for the title
  73. table elements part of the content model for
  74. table element
  75. %tbl.table.mdl In content model of: The model group for the content
  76. table elements model for table element,
  77. often (and by default) defined
  78. in terms of %tbl.table-titles.mdl
  79. and tgroup
  80. %tbl.table.att In ATTLIST of: Additional attributes on the
  81. table element table element
  82. %bodyatt In ATTLIST of: Additional attributes on the
  83. table element table element (for backward
  84. compatibility with the SGML
  85. model)
  86. %tbl.tgroup.mdl In content model of: The model group for the content
  87. <tgroup> model for <tgroup>
  88. %tbl.tgroup.att In ATTLIST of: Additional attributes on the
  89. <tgroup> <tgroup> element
  90. %tbl.thead.att In ATTLIST of: Additional attributes on the
  91. <thead> <thead> element
  92. %tbl.tbody.att In ATTLIST of: Additional attributes on the
  93. <tbody> <tbody> element
  94. %tbl.colspec.att In ATTLIST of: Additional attributes on the
  95. <colspec> <colspec> element
  96. %tbl.row.mdl In content model of: The model group for the content
  97. <row> model for <row>
  98. %tbl.row.att In ATTLIST of: Additional attributes on the
  99. <row> <row> element
  100. %tbl.entry.mdl In content model of: The model group for the content
  101. <entry> model for <entry>
  102. %tbl.entry.att In ATTLIST of: Additional attributes on the
  103. <entry> <entry> element
  104. This set of declarations will use the default definitions shown below
  105. for any of these parameter entities that are not declared before this
  106. set of declarations is referenced.
  107. -->
  108. <!-- These definitions are not directly related to the table model, but are
  109. used in the default CALS table model and may be defined elsewhere (and
  110. prior to the inclusion of this table module) in the referencing DTD. -->
  111. <!ENTITY % yesorno 'NMTOKEN'> <!-- no if zero(s), yes if any other value -->
  112. <!ENTITY % titles 'title?'>
  113. <!ENTITY % pcd "#PCDATA">
  114. <!ENTITY % paracon '%pcd;'> <!-- default for use in entry content -->
  115. <!--
  116. The parameter entities as defined below change and simplify the CALS table
  117. model as published (as part of the Example DTD) in MIL-HDBK-28001. The
  118. resulting simplified DTD has support from the SGML Open vendors and is
  119. therefore more interoperable among different systems.
  120. These following declarations provide the Exchange default definitions
  121. for these entities. However, these entities can be redefined (by giving
  122. the appropriate parameter entity declaration(s) prior to the reference
  123. to this Table Model declaration set entity) to fit the needs of the
  124. current application.
  125. Note, however, that changes may have significant effect on the ability to
  126. interchange table information. These changes may manifest themselves
  127. in useability, presentation, and possible structure information degradation.
  128. -->
  129. <!ENTITY % tbl.table.name "table">
  130. <!ENTITY % tbl.table-titles.mdl "%titles;,">
  131. <!ENTITY % tbl.table-main.mdl "tgroup+">
  132. <!ENTITY % tbl.table.mdl "%tbl.table-titles.mdl; %tbl.table-main.mdl;">
  133. <!ENTITY % tbl.table.att "
  134. pgwide %yesorno; #IMPLIED ">
  135. <!ENTITY % bodyatt "">
  136. <!ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody">
  137. <!ENTITY % tbl.tgroup.att "">
  138. <!ENTITY % tbl.thead.att "">
  139. <!ENTITY % tbl.tbody.att "">
  140. <!ENTITY % tbl.colspec.att "">
  141. <!ENTITY % tbl.row.mdl "entry+">
  142. <!ENTITY % tbl.row.att "">
  143. <!ENTITY % tbl.entry.mdl "(%paracon;)*">
  144. <!ENTITY % tbl.entry.att "">
  145. <!ENTITY % tbl.frame.attval "top|bottom|topbot|all|sides|none">
  146. <!ENTITY % tbl.tbody.mdl "row+">
  147. <!-- ===== Element and attribute declarations follow. ===== -->
  148. <!--
  149. Default declarations previously defined in this entity and
  150. referenced below include:
  151. ENTITY % tbl.table.name "table"
  152. ENTITY % tbl.table-titles.mdl "%titles;,"
  153. ENTITY % tbl.table.mdl "%tbl.table-titles; tgroup+"
  154. ENTITY % tbl.table.att "
  155. pgwide %yesorno; #IMPLIED "
  156. -->
  157. <!--doc:???-->
  158. <!ELEMENT %tbl.table.name; (%tbl.table.mdl;)>
  159. <!ATTLIST %tbl.table.name;
  160. frame (%tbl.frame.attval;) #IMPLIED
  161. colsep %yesorno; #IMPLIED
  162. rowsep %yesorno; #IMPLIED
  163. %tbl.table.att;
  164. %bodyatt;
  165. >
  166. <!--
  167. Default declarations previously defined in this entity and
  168. referenced below include:
  169. ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
  170. ENTITY % tbl.tgroup.att ""
  171. -->
  172. <!--doc:A wrapper for the main content of a table, or part of a table.-->
  173. <!ELEMENT tgroup (%tbl.tgroup.mdl;) >
  174. <!ATTLIST tgroup
  175. cols NMTOKEN #REQUIRED
  176. colsep %yesorno; #IMPLIED
  177. rowsep %yesorno; #IMPLIED
  178. align (left|right|center|justify|char) #IMPLIED
  179. %tbl.tgroup.att;
  180. >
  181. <!--
  182. Default declarations previously defined in this entity and
  183. referenced below include:
  184. ENTITY % tbl.colspec.att ""
  185. -->
  186. <!--doc:Specifications for a column in a table.-->
  187. <!ELEMENT colspec EMPTY >
  188. <!ATTLIST colspec
  189. colnum NMTOKEN #IMPLIED
  190. colname NMTOKEN #IMPLIED
  191. colwidth CDATA #IMPLIED
  192. colsep %yesorno; #IMPLIED
  193. rowsep %yesorno; #IMPLIED
  194. align (left|right|center|justify|char) #IMPLIED
  195. char CDATA #IMPLIED
  196. charoff NMTOKEN #IMPLIED
  197. %tbl.colspec.att;
  198. >
  199. <!--
  200. Default declarations previously defined in this entity and
  201. referenced below include:
  202. ENTITY % tbl.thead.att ""
  203. -->
  204. <!--doc:A table header consisting of one or more rows.-->
  205. <!ELEMENT thead (row+)>
  206. <!ATTLIST thead
  207. valign (top|middle|bottom) #IMPLIED
  208. %tbl.thead.att;
  209. >
  210. <!--
  211. Default declarations previously defined in this entity and
  212. referenced below include:
  213. ENTITY % tbl.tbody.att ""
  214. -->
  215. <!--doc:A wrapper for the rows of a table or informal table.-->
  216. <!ELEMENT tbody (%tbl.tbody.mdl;)>
  217. <!ATTLIST tbody
  218. valign (top|middle|bottom) #IMPLIED
  219. %tbl.tbody.att;
  220. >
  221. <!--
  222. Default declarations previously defined in this entity and
  223. referenced below include:
  224. ENTITY % tbl.row.mdl "entry+"
  225. ENTITY % tbl.row.att ""
  226. -->
  227. <!--doc:A row in a table.-->
  228. <!ELEMENT row (%tbl.row.mdl;)>
  229. <!ATTLIST row
  230. rowsep %yesorno; #IMPLIED
  231. valign (top|middle|bottom) #IMPLIED
  232. %tbl.row.att;
  233. >
  234. <!--
  235. Default declarations previously defined in this entity and
  236. referenced below include:
  237. ENTITY % paracon "#PCDATA"
  238. ENTITY % tbl.entry.mdl "(%paracon;)*"
  239. ENTITY % tbl.entry.att ""
  240. -->
  241. <!--doc:A cell in a table.-->
  242. <!ELEMENT entry (%tbl.entry.mdl;)*>
  243. <!ATTLIST entry
  244. colname NMTOKEN #IMPLIED
  245. namest NMTOKEN #IMPLIED
  246. nameend NMTOKEN #IMPLIED
  247. morerows NMTOKEN #IMPLIED
  248. colsep %yesorno; #IMPLIED
  249. rowsep %yesorno; #IMPLIED
  250. align (left|right|center|justify|char) #IMPLIED
  251. char CDATA #IMPLIED
  252. charoff NMTOKEN #IMPLIED
  253. valign (top|middle|bottom) #IMPLIED
  254. %tbl.entry.att;
  255. >