PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/XML/xml/dtds/soextblx.dtd

#
Document Type Definition | 314 lines | 248 code | 66 blank | 0 comment | 0 complexity | ae38233a0ccca56a9bafb4cbb843758a 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. <!-- 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. <!ELEMENT %tbl.table.name; (%tbl.table.mdl;)>
  158. <!ATTLIST %tbl.table.name;
  159. frame (%tbl.frame.attval;) #IMPLIED
  160. colsep %yesorno; #IMPLIED
  161. rowsep %yesorno; #IMPLIED
  162. %tbl.table.att;
  163. %bodyatt;
  164. >
  165. <!--
  166. Default declarations previously defined in this entity and
  167. referenced below include:
  168. ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
  169. ENTITY % tbl.tgroup.att ""
  170. -->
  171. <!ELEMENT tgroup (%tbl.tgroup.mdl;) >
  172. <!ATTLIST tgroup
  173. cols NMTOKEN #REQUIRED
  174. colsep %yesorno; #IMPLIED
  175. rowsep %yesorno; #IMPLIED
  176. align (left|right|center|justify|char) #IMPLIED
  177. %tbl.tgroup.att;
  178. >
  179. <!--
  180. Default declarations previously defined in this entity and
  181. referenced below include:
  182. ENTITY % tbl.colspec.att ""
  183. -->
  184. <!ELEMENT colspec EMPTY >
  185. <!ATTLIST colspec
  186. colnum NMTOKEN #IMPLIED
  187. colname NMTOKEN #IMPLIED
  188. colwidth CDATA #IMPLIED
  189. colsep %yesorno; #IMPLIED
  190. rowsep %yesorno; #IMPLIED
  191. align (left|right|center|justify|char) #IMPLIED
  192. char CDATA #IMPLIED
  193. charoff NMTOKEN #IMPLIED
  194. %tbl.colspec.att;
  195. >
  196. <!--
  197. Default declarations previously defined in this entity and
  198. referenced below include:
  199. ENTITY % tbl.thead.att ""
  200. -->
  201. <!ELEMENT thead (row+)>
  202. <!ATTLIST thead
  203. valign (top|middle|bottom) #IMPLIED
  204. %tbl.thead.att;
  205. >
  206. <!--
  207. Default declarations previously defined in this entity and
  208. referenced below include:
  209. ENTITY % tbl.tbody.att ""
  210. -->
  211. <!ELEMENT tbody (%tbl.tbody.mdl;)>
  212. <!ATTLIST tbody
  213. valign (top|middle|bottom) #IMPLIED
  214. %tbl.tbody.att;
  215. >
  216. <!--
  217. Default declarations previously defined in this entity and
  218. referenced below include:
  219. ENTITY % tbl.row.mdl "entry+"
  220. ENTITY % tbl.row.att ""
  221. -->
  222. <!ELEMENT row (%tbl.row.mdl;)>
  223. <!ATTLIST row
  224. rowsep %yesorno; #IMPLIED
  225. valign (top|middle|bottom) #IMPLIED
  226. %tbl.row.att;
  227. >
  228. <!--
  229. Default declarations previously defined in this entity and
  230. referenced below include:
  231. ENTITY % paracon "#PCDATA"
  232. ENTITY % tbl.entry.mdl "(%paracon;)*"
  233. ENTITY % tbl.entry.att ""
  234. -->
  235. <!ELEMENT entry (%tbl.entry.mdl;)*>
  236. <!ATTLIST entry
  237. colname NMTOKEN #IMPLIED
  238. namest NMTOKEN #IMPLIED
  239. nameend NMTOKEN #IMPLIED
  240. morerows NMTOKEN #IMPLIED
  241. colsep %yesorno; #IMPLIED
  242. rowsep %yesorno; #IMPLIED
  243. align (left|right|center|justify|char) #IMPLIED
  244. char CDATA #IMPLIED
  245. charoff NMTOKEN #IMPLIED
  246. valign (top|middle|bottom) #IMPLIED
  247. %tbl.entry.att;
  248. >