tblDecl.mod 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <!-- ============================================================= -->
  2. <!-- HEADER -->
  3. <!-- ============================================================= -->
  4. <!-- MODULE: XML EXCHANGE TABLE MODEL DECLARATION MODULE -->
  5. <!-- VERSION: 1.1 -->
  6. <!-- DATE: November 2006 -->
  7. <!-- -->
  8. <!-- ============================================================= -->
  9. <!-- (C) Copyright OASIS Open 2005, 2006. -->
  10. <!-- (C) Copyright IBM Corporation 2001, 2004. -->
  11. <!-- All Rights Reserved. -->
  12. <!-- -->
  13. <!-- UPDATES: -->
  14. <!-- 2005.11.15 RDA: Corrected the "Delivered as" system ID -->
  15. <!-- 2006.06.07 RDA: Make universal attributes universal -->
  16. <!-- (DITA 1.1 proposal #12) -->
  17. <!-- 2006.11.30 RDA: Add -dita-use-conref-target to enumerated -->
  18. <!-- attributes -->
  19. <!-- ============================================================= -->
  20. <!-- Delivered as file "tblDecl.mod" -->
  21. <!-- ============================================================= -->
  22. <!-- XML EXCHANGE TABLE MODEL DECLARATION MODULE -->
  23. <!-- OASIS DITA 1.0 notes:
  24. The Exchange Table Model replaces the original CALS-based model
  25. used in development versions of the DITA definition.
  26. This set of declarations defines the XML version of the Exchange
  27. Table Model as adapted for OASIS DITA version 1.0.
  28. The base for the DITA version of the Exchange Table Model is
  29. defined at http://www.oasis-open.org/specs/tm9901.htm .
  30. The DITA version specifically extends this model with these DITA-
  31. specific content and attribute adaptations to the DITA processing
  32. requirements:
  33. STRUCTURE:
  34. Introduce the DITA-unique <desc> element (optional after <title>); this element
  35. enables more consistent presentation of both figures and tables.
  36. ATTRIBUTES:
  37. For frame, align, and valign attributes on any element:
  38. Add the enumerated value -dita-use-conref-target for DITA 1.1.
  39. For the <table> element, add:
  40. %univ-atts; which consists of:
  41. %select-atts; [for selection, conditional processing]
  42. %id-atts; [for conref and linking]
  43. %localization-atts (@translate + @xml:lang) [for NLS processing support]
  44. %global-atts; (@xtrf + @xtrc) [for tracing and messaging support in processors]
  45. @class [for specialization support]
  46. @outputclass [for role designation (ie, styles, future migrations)]
  47. @rowheader [for accessibility support in processing]
  48. %display-atts; which consists of:
  49. @scale [for presentational equivalence with other scaled exhibits: fig, pre, lines, simpletable]
  50. @frame (already part of table)
  51. @pgwide (already part of table, same intent as original @expanse)
  52. For <tgroup>, <thead>, <tbody>, and <row>, add:
  53. %univ-atts;
  54. %global-atts;
  55. @class
  56. @outputclass [for role designation (ie, styles, future migrations)]
  57. For <entry>, add:
  58. %id-atts;
  59. %global-atts
  60. @class
  61. @outputclass [for role designation (ie, styles, future migrations)]
  62. @rev [for indication of revised content for flag-based processing]
  63. -->
  64. <!-- DITA specialization support: element redefinition for expansion -->
  65. <!ENTITY % table "table">
  66. <!ENTITY % tgroup "tgroup">
  67. <!ENTITY % colspec "colspec">
  68. <!ENTITY % thead "thead">
  69. <!ENTITY % tbody "tbody">
  70. <!ENTITY % row "row">
  71. <!ENTITY % entry "entry">
  72. <!-- The Formal Public Identifier (FPI) for this DITA adaptation of
  73. the Exchange Table Model shall be:
  74. "-//OASIS//ELEMENTS DITA Exchange Table Model//EN"
  75. This set of declarations may be referred to using a public external
  76. entity declaration and reference as shown in the following three
  77. lines:
  78. <!ENTITY % tableXML
  79. PUBLIC "-//OASIS//ELEMENTS DITA Exchange Table Model//EN">
  80. %tableXML;
  81. -->
  82. <!-- In order to use the Exchange table model, various parameter entity
  83. declarations are required. A brief description is as follows:
  84. ENTITY NAME WHERE USED WHAT IT IS
  85. %yesorno In ATTLIST of: An attribute declared value
  86. almost all elements for a "boolean" attribute
  87. %paracon In content model of: The "text" (logical content)
  88. <entry> of the model group for <entry>
  89. %titles In content model of: The "title" part of the model
  90. table element group for the table element
  91. %tbl.table.name In declaration of: The name of the "table"
  92. table element element
  93. %tbl.table-titles.mdl In content model of: The model group for the title
  94. table elements part of the content model for
  95. table element
  96. %tbl.table.mdl In content model of: The model group for the content
  97. table elements model for table element,
  98. often (and by default) defined
  99. in terms of %tbl.table-titles.mdl
  100. and tgroup
  101. %tbl.table.att In ATTLIST of: Additional attributes on the
  102. table element table element
  103. %bodyatt In ATTLIST of: Additional attributes on the
  104. table element table element (for backward
  105. compatibility with the SGML
  106. model)
  107. %tbl.tgroup.mdl In content model of: The model group for the content
  108. <tgroup> model for <tgroup>
  109. %tbl.tgroup.att In ATTLIST of: Additional attributes on the
  110. <tgroup> <tgroup> element
  111. %tbl.thead.att In ATTLIST of: Additional attributes on the
  112. <thead> <thead> element
  113. %tbl.tbody.att In ATTLIST of: Additional attributes on the
  114. <tbody> <tbody> element
  115. %tbl.colspec.att In ATTLIST of: Additional attributes on the
  116. <colspec> <colspec> element
  117. %tbl.row.mdl In content model of: The model group for the content
  118. <row> model for <row>
  119. %tbl.row.att In ATTLIST of: Additional attributes on the
  120. <row> <row> element
  121. %tbl.entry.mdl In content model of: The model group for the content
  122. <entry> model for <entry>
  123. %tbl.entry.att In ATTLIST of: Additional attributes on the
  124. <entry> <entry> element
  125. This set of declarations will use the default definitions shown below
  126. for any of these parameter entities that are not declared before this
  127. set of declarations is referenced.
  128. Note that DITA properties are added in cumulative declarations at the end.
  129. -->
  130. <!-- These definitions are not directly related to the table model, but are
  131. used in the default CALS table model and may be defined elsewhere (and
  132. prior to the inclusion of this table module) in the referencing DTD. -->
  133. <!ENTITY % yesorno 'NMTOKEN'> <!-- no if zero(s), yes if any other value -->
  134. <!ENTITY % titles 'title?'>
  135. <!ENTITY % paracon '%tblcell.cnt;'> <!-- default for use in entry content -->
  136. <!--
  137. The parameter entities as defined below change and simplify the CALS table
  138. model as published (as part of the Example DTD) in MIL-HDBK-28001. The
  139. resulting simplified DTD has support from the SGML Open vendors and is
  140. therefore more interoperable among different systems.
  141. These following declarations provide the Exchange default definitions
  142. for these entities. However, these entities can be redefined (by giving
  143. the appropriate parameter entity declaration(s) prior to the reference
  144. to this Table Model declaration set entity) to fit the needs of the
  145. current application.
  146. Note, however, that changes may have significant effect on the ability to
  147. interchange table information. These changes may manifest themselves
  148. in useability, presentation, and possible structure information degradation.
  149. -->
  150. <!ENTITY % tbl.table.name "table">
  151. <!ENTITY % tbl.table-titles.mdl "((%title;)?, (%desc;)?)?,">
  152. <!ENTITY % tbl.table-main.mdl "(%tgroup;)+">
  153. <!ENTITY % tbl.table.mdl "%tbl.table-titles.mdl; %tbl.table-main.mdl;">
  154. <!ENTITY % tbl.table.att "
  155. pgwide %yesorno; #IMPLIED ">
  156. <!ENTITY % bodyatt "">
  157. <!ENTITY % tbl.tgroup.mdl "(%colspec;)*, (%thead;)?, %tbody;">
  158. <!ENTITY % tbl.tgroup.att "">
  159. <!ENTITY % tbl.thead.att "">
  160. <!ENTITY % tbl.tbody.att "">
  161. <!ENTITY % tbl.colspec.att "base CDATA #IMPLIED
  162. %base-attribute-extensions;">
  163. <!ENTITY % tbl.row.mdl "(%entry;)+">
  164. <!ENTITY % tbl.row.att "">
  165. <!ENTITY % tbl.entry.mdl "(%paracon;)*">
  166. <!ENTITY % tbl.entry.att "base CDATA #IMPLIED
  167. %base-attribute-extensions;">
  168. <!-- ===== Element and attribute declarations follow. ===== -->
  169. <!--
  170. Default declarations previously defined in this entity and
  171. referenced below include:
  172. ENTITY % tbl.table.name "table"
  173. ENTITY % tbl.table-titles.mdl "%titles;,"
  174. ENTITY % tbl.table.mdl "%tbl.table-titles; tgroup+"
  175. ENTITY % tbl.table.att "
  176. pgwide %yesorno; #IMPLIED "
  177. -->
  178. <!ELEMENT %tbl.table.name; (%tbl.table.mdl;)>
  179. <!ATTLIST %tbl.table.name;
  180. frame (top|bottom|topbot|all|sides|none|
  181. -dita-use-conref-target) #IMPLIED
  182. colsep %yesorno; #IMPLIED
  183. rowsep %yesorno; #IMPLIED
  184. %tbl.table.att;
  185. %bodyatt;
  186. >
  187. <!--
  188. Default declarations previously defined in this entity and
  189. referenced below include:
  190. ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
  191. ENTITY % tbl.tgroup.att ""
  192. -->
  193. <!ELEMENT tgroup (%tbl.tgroup.mdl;) >
  194. <!ATTLIST tgroup
  195. cols NMTOKEN #REQUIRED
  196. colsep %yesorno; #IMPLIED
  197. rowsep %yesorno; #IMPLIED
  198. align (left|right|center|justify|char|
  199. -dita-use-conref-target) #IMPLIED
  200. %tbl.tgroup.att;
  201. >
  202. <!--
  203. Default declarations previously defined in this entity and
  204. referenced below include:
  205. ENTITY % tbl.colspec.att ""
  206. -->
  207. <!ELEMENT colspec EMPTY >
  208. <!ATTLIST colspec
  209. colnum NMTOKEN #IMPLIED
  210. colname NMTOKEN #IMPLIED
  211. colwidth CDATA #IMPLIED
  212. colsep %yesorno; #IMPLIED
  213. rowsep %yesorno; #IMPLIED
  214. align (left|right|center|justify|char|
  215. -dita-use-conref-target) #IMPLIED
  216. char CDATA #IMPLIED
  217. charoff NMTOKEN #IMPLIED
  218. %tbl.colspec.att;
  219. >
  220. <!--
  221. Default declarations previously defined in this entity and
  222. referenced below include:
  223. ENTITY % tbl.thead.att ""
  224. -->
  225. <!ELEMENT thead ((%row;)+)>
  226. <!ATTLIST thead
  227. valign (top|middle|bottom|
  228. -dita-use-conref-target) #IMPLIED
  229. %tbl.thead.att;
  230. >
  231. <!--
  232. Default declarations previously defined in this entity and
  233. referenced below include:
  234. ENTITY % tbl.tbody.att ""
  235. -->
  236. <!ELEMENT tbody (%row;)+>
  237. <!ATTLIST tbody
  238. valign (top|middle|bottom|
  239. -dita-use-conref-target) #IMPLIED
  240. %tbl.tbody.att;
  241. >
  242. <!--
  243. Default declarations previously defined in this entity and
  244. referenced below include:
  245. ENTITY % tbl.row.mdl "entry+"
  246. ENTITY % tbl.row.att ""
  247. -->
  248. <!ELEMENT row (%tbl.row.mdl;)>
  249. <!ATTLIST row
  250. rowsep %yesorno; #IMPLIED
  251. valign (top|middle|bottom|
  252. -dita-use-conref-target) #IMPLIED
  253. %tbl.row.att;
  254. >
  255. <!--
  256. Default declarations previously defined in this entity and
  257. referenced below include:
  258. ENTITY % paracon "#PCDATA"
  259. ENTITY % tbl.entry.mdl "(%paracon;)*"
  260. ENTITY % tbl.entry.att ""
  261. -->
  262. <!ELEMENT entry %tbl.entry.mdl;>
  263. <!ATTLIST entry
  264. colname NMTOKEN #IMPLIED
  265. namest NMTOKEN #IMPLIED
  266. nameend NMTOKEN #IMPLIED
  267. morerows NMTOKEN #IMPLIED
  268. colsep %yesorno; #IMPLIED
  269. rowsep %yesorno; #IMPLIED
  270. align (left|right|center|justify|char|
  271. -dita-use-conref-target) #IMPLIED
  272. char CDATA #IMPLIED
  273. charoff NMTOKEN #IMPLIED
  274. valign (top|middle|bottom|
  275. -dita-use-conref-target) #IMPLIED
  276. %tbl.entry.att;
  277. >
  278. <!-- ============================================================= -->
  279. <!-- DITA BEHAVIOR ATTRIBUTES -->
  280. <!-- ============================================================= -->
  281. <!ATTLIST %tbl.table.name;
  282. rowheader (firstcol | norowheader |
  283. -dita-use-conref-target) #IMPLIED
  284. scale (50|60|70|80|90|100|110|120|140|160|180|200|
  285. -dita-use-conref-target) #IMPLIED
  286. %univ-atts;
  287. outputclass CDATA #IMPLIED>
  288. <!ATTLIST tgroup
  289. %univ-atts;
  290. outputclass CDATA #IMPLIED>
  291. <!ATTLIST thead
  292. %univ-atts;
  293. outputclass CDATA #IMPLIED>
  294. <!ATTLIST tbody
  295. %univ-atts;
  296. outputclass CDATA #IMPLIED>
  297. <!ATTLIST row
  298. %univ-atts;
  299. outputclass CDATA #IMPLIED>
  300. <!ATTLIST entry
  301. %id-atts;
  302. %localization-atts;
  303. rev CDATA #IMPLIED
  304. outputclass CDATA #IMPLIED>
  305. <!ATTLIST colspec
  306. %id-atts;
  307. %localization-atts;>
  308. <!-- ============================================================= -->
  309. <!-- DITA SPECIALIZATION ATTRIBUTE DECLARATIONS -->
  310. <!-- ============================================================= -->
  311. <!ATTLIST table %global-atts; class CDATA "- topic/table " >
  312. <!ATTLIST tgroup %global-atts; class CDATA "- topic/tgroup " >
  313. <!ATTLIST colspec %global-atts; class CDATA "- topic/colspec " >
  314. <!ATTLIST thead %global-atts; class CDATA "- topic/thead " >
  315. <!ATTLIST tbody %global-atts; class CDATA "- topic/tbody " >
  316. <!ATTLIST row %global-atts; class CDATA "- topic/row " >
  317. <!ATTLIST entry %global-atts; class CDATA "- topic/entry " >
  318. <!-- ================== End XML Exchange Table Model ============= -->