task.mod 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <!-- ============================================================= -->
  2. <!-- HEADER -->
  3. <!-- ============================================================= -->
  4. <!-- MODULE: DITA Task -->
  5. <!-- VERSION: 1.1 -->
  6. <!-- DATE: November 2006 -->
  7. <!-- -->
  8. <!-- ============================================================= -->
  9. <!-- ============================================================= -->
  10. <!-- PUBLIC DOCUMENT TYPE DEFINITION -->
  11. <!-- TYPICAL INVOCATION -->
  12. <!-- -->
  13. <!-- Refer to this file by the following public identifier or an
  14. appropriate system identifier
  15. PUBLIC "-//OASIS//ELEMENTS DITA Task//EN"
  16. Delivered as file "task.mod" -->
  17. <!-- ============================================================= -->
  18. <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
  19. <!-- -->
  20. <!-- PURPOSE: Declaring the elements and specialization -->
  21. <!-- attributes for the DITA Tasks -->
  22. <!-- -->
  23. <!-- ORIGINAL CREATION DATE: -->
  24. <!-- March 2001 -->
  25. <!-- -->
  26. <!-- (C) Copyright OASIS Open 2005, 2006. -->
  27. <!-- (C) Copyright IBM Corporation 2001, 2004. -->
  28. <!-- All Rights Reserved. -->
  29. <!-- -->
  30. <!-- UPDATES: -->
  31. <!-- 2005.11.15 RDA: Removed old declaration for -->
  32. <!-- taskClasses entity -->
  33. <!-- 2005.11.15 RDA: Corrected LONG NAME for chdeschd -->
  34. <!-- 2006.06.06 RDA: Changed model of choice to listitem.cnt -->
  35. <!-- for completeness -->
  36. <!-- 2006.06.07 RDA: Added <abstract> element -->
  37. <!-- 2006.06.07 RDA: Make universal attributes universal -->
  38. <!-- (DITA 1.1 proposal #12) -->
  39. <!-- 2006.11.30 RDA: Add -dita-use-conref-target to enumerated -->
  40. <!-- attributes -->
  41. <!-- 2006.11.30 RDA: Remove #FIXED from DITAArchVersion -->
  42. <!-- ============================================================= -->
  43. <!-- ============================================================= -->
  44. <!-- ARCHITECTURE ENTITIES -->
  45. <!-- ============================================================= -->
  46. <!-- default namespace prefix for DITAArchVersion attribute can be
  47. overridden through predefinition in the document type shell -->
  48. <!ENTITY % DITAArchNSPrefix
  49. "ditaarch" >
  50. <!-- must be instanced on each topic type -->
  51. <!ENTITY % arch-atts "
  52. xmlns:%DITAArchNSPrefix;
  53. CDATA #FIXED
  54. 'http://dita.oasis-open.org/architecture/2005/'
  55. %DITAArchNSPrefix;:DITAArchVersion
  56. CDATA '1.1'" >
  57. <!-- ============================================================= -->
  58. <!-- SPECIALIZATION OF DECLARED ELEMENTS -->
  59. <!-- ============================================================= -->
  60. <!-- ============================================================= -->
  61. <!-- ELEMENT NAME ENTITIES -->
  62. <!-- ============================================================= -->
  63. <!ENTITY % task "task" >
  64. <!ENTITY % taskbody "taskbody" >
  65. <!ENTITY % steps "steps" >
  66. <!ENTITY % steps-unordered
  67. "steps-unordered" >
  68. <!ENTITY % step "step" >
  69. <!ENTITY % cmd "cmd" >
  70. <!ENTITY % substeps "substeps" >
  71. <!ENTITY % substep "substep" >
  72. <!ENTITY % tutorialinfo
  73. "tutorialinfo" >
  74. <!ENTITY % info "info" >
  75. <!ENTITY % stepxmp "stepxmp" >
  76. <!ENTITY % stepresult "stepresult" >
  77. <!ENTITY % choices "choices" >
  78. <!ENTITY % choice "choice" >
  79. <!ENTITY % result "result" >
  80. <!ENTITY % prereq "prereq" >
  81. <!ENTITY % postreq "postreq" >
  82. <!ENTITY % context "context" >
  83. <!ENTITY % choicetable "choicetable" >
  84. <!ENTITY % chhead "chhead" >
  85. <!ENTITY % chrow "chrow" >
  86. <!ENTITY % choptionhd "choptionhd" >
  87. <!ENTITY % chdeschd "chdeschd" >
  88. <!ENTITY % choption "choption" >
  89. <!ENTITY % chdesc "chdesc" >
  90. <!-- ============================================================= -->
  91. <!-- SHARED ATTRIBUTE LISTS -->
  92. <!-- ============================================================= -->
  93. <!-- Provide an alternative set of univ-atts
  94. that allows importance to be redefined
  95. locally -->
  96. <!ENTITY % univ-atts-no-importance-task
  97. '%id-atts;
  98. %filter-atts;
  99. base CDATA #IMPLIED
  100. %base-attribute-extensions;
  101. rev CDATA #IMPLIED
  102. status (new | changed | deleted |
  103. unchanged |
  104. -dita-use-conref-target) #IMPLIED
  105. %localization-atts; ' >
  106. <!ENTITY % task-info-types
  107. "%info-types;" >
  108. <!-- ============================================================= -->
  109. <!-- DOMAINS ATTRIBUTE OVERRIDE -->
  110. <!-- ============================================================= -->
  111. <!ENTITY included-domains "" >
  112. <!-- ============================================================= -->
  113. <!-- ELEMENT DECLARATIONS -->
  114. <!-- ============================================================= -->
  115. <!-- LONG NAME: Task -->
  116. <!ELEMENT task ((%title;), (%titlealts;)?,
  117. (%shortdesc; | %abstract;)?,
  118. (%prolog;)?, (%taskbody;)?,
  119. (%related-links;)?, (%task-info-types;)* ) >
  120. <!ATTLIST task
  121. id ID #REQUIRED
  122. conref CDATA #IMPLIED
  123. %select-atts;
  124. %localization-atts;
  125. %arch-atts;
  126. outputclass
  127. CDATA #IMPLIED
  128. domains CDATA "&included-domains;" >
  129. <!-- LONG NAME: Task Body -->
  130. <!ELEMENT taskbody ((%prereq;)?, (%context;)?,
  131. (%steps; | %steps-unordered;)?,
  132. (%result;)?, (%example;)?, (%postreq;)?) >
  133. <!ATTLIST taskbody
  134. %id-atts;
  135. %localization-atts;
  136. base CDATA #IMPLIED
  137. %base-attribute-extensions;
  138. outputclass
  139. CDATA #IMPLIED >
  140. <!-- LONG NAME: Prerequisites -->
  141. <!ELEMENT prereq (%section.notitle.cnt;)* >
  142. <!ATTLIST prereq
  143. %univ-atts;
  144. outputclass
  145. CDATA #IMPLIED >
  146. <!-- LONG NAME: Context -->
  147. <!ELEMENT context (%section.notitle.cnt;)* >
  148. <!ATTLIST context
  149. %univ-atts;
  150. outputclass
  151. CDATA #IMPLIED >
  152. <!-- LONG NAME: Steps -->
  153. <!ELEMENT steps ((%step;)+) >
  154. <!ATTLIST steps
  155. %univ-atts;
  156. outputclass
  157. CDATA #IMPLIED >
  158. <!-- LONG NAME: Steps: Unordered -->
  159. <!ELEMENT steps-unordered
  160. ((%step;)+) >
  161. <!ATTLIST steps-unordered
  162. %univ-atts;
  163. outputclass
  164. CDATA #IMPLIED >
  165. <!-- LONG NAME: Step -->
  166. <!ELEMENT step (%cmd;,
  167. (%info; |%substeps; | %tutorialinfo; |
  168. %stepxmp; | %choicetable; | %choices;)*,
  169. (%stepresult;)? ) >
  170. <!ATTLIST step
  171. importance (optional | required |
  172. -dita-use-conref-target) #IMPLIED
  173. %univ-atts-no-importance-task;
  174. outputclass
  175. CDATA #IMPLIED >
  176. <!--ATTLIST step
  177. importance (optional | required) #IMPLIED -->
  178. <!-- LONG NAME: Command -->
  179. <!ELEMENT cmd (%ph.cnt;)* >
  180. <!ATTLIST cmd
  181. keyref CDATA #IMPLIED
  182. %univ-atts;
  183. outputclass
  184. CDATA #IMPLIED >
  185. <!-- LONG NAME: Information -->
  186. <!ELEMENT info (%itemgroup.cnt;)* >
  187. <!ATTLIST info
  188. %univ-atts;
  189. outputclass
  190. CDATA #IMPLIED >
  191. <!-- LONG NAME: Sub-steps -->
  192. <!ELEMENT substeps (%substep;)+ >
  193. <!ATTLIST substeps
  194. %univ-atts;
  195. outputclass
  196. CDATA #IMPLIED >
  197. <!-- LONG NAME: Sub-step -->
  198. <!ELEMENT substep (%cmd;,
  199. (%info; | %tutorialinfo; | %stepxmp;)*,
  200. (%stepresult;)? ) >
  201. <!ATTLIST substep
  202. importance (optional | required |
  203. -dita-use-conref-target) #IMPLIED
  204. %univ-atts-no-importance-task;
  205. outputclass
  206. CDATA #IMPLIED >
  207. <!--ATTLIST substep
  208. importance
  209. (optional | required) #IMPLIED -->
  210. <!-- LONG NAME: Tutorial Information -->
  211. <!ELEMENT tutorialinfo (%itemgroup.cnt;)* >
  212. <!ATTLIST tutorialinfo
  213. %univ-atts;
  214. outputclass
  215. CDATA #IMPLIED >
  216. <!-- LONG NAME: Step Example -->
  217. <!ELEMENT stepxmp (%itemgroup.cnt;)* >
  218. <!ATTLIST stepxmp
  219. %univ-atts;
  220. outputclass
  221. CDATA #IMPLIED >
  222. <!-- LONG NAME: Choices -->
  223. <!ELEMENT choices ((%choice;)+) >
  224. <!ATTLIST choices
  225. %univ-atts;
  226. outputclass
  227. CDATA #IMPLIED >
  228. <!-- LONG NAME: Choice -->
  229. <!ELEMENT choice (%listitem.cnt;)* >
  230. <!ATTLIST choice
  231. %univ-atts;
  232. outputclass
  233. CDATA #IMPLIED >
  234. <!-- LONG NAME: Choice Table -->
  235. <!ELEMENT choicetable ((%chhead;)?, (%chrow;)+ ) >
  236. <!ATTLIST choicetable
  237. relcolwidth
  238. CDATA #IMPLIED
  239. keycol NMTOKEN "1"
  240. refcols NMTOKENS #IMPLIED
  241. spectitle CDATA #IMPLIED
  242. %display-atts;
  243. %univ-atts;
  244. outputclass
  245. CDATA #IMPLIED >
  246. <!-- LONG NAME: Choice Head -->
  247. <!ELEMENT chhead ((%choptionhd;), (%chdeschd;) ) >
  248. <!ATTLIST chhead
  249. %univ-atts;
  250. outputclass
  251. CDATA #IMPLIED >
  252. <!-- LONG NAME: Choice Option Head -->
  253. <!ELEMENT choptionhd (%tblcell.cnt;)* >
  254. <!ATTLIST choptionhd
  255. specentry CDATA #IMPLIED
  256. %univ-atts;
  257. outputclass
  258. CDATA #IMPLIED >
  259. <!-- LONG NAME: Choice Description Head -->
  260. <!ELEMENT chdeschd (%tblcell.cnt;)* >
  261. <!ATTLIST chdeschd
  262. specentry CDATA #IMPLIED
  263. %univ-atts;
  264. outputclass
  265. CDATA #IMPLIED >
  266. <!-- LONG NAME: Choice Row -->
  267. <!ELEMENT chrow ((%choption;), (%chdesc;) ) >
  268. <!ATTLIST chrow
  269. %univ-atts;
  270. outputclass
  271. CDATA #IMPLIED >
  272. <!-- LONG NAME: Choice Option -->
  273. <!ELEMENT choption (%tblcell.cnt;)*>
  274. <!ATTLIST choption
  275. specentry CDATA #IMPLIED
  276. %univ-atts;
  277. outputclass
  278. CDATA #IMPLIED >
  279. <!-- LONG NAME: Choice Description -->
  280. <!ELEMENT chdesc (%tblcell.cnt;)*>
  281. <!ATTLIST chdesc
  282. specentry CDATA #IMPLIED
  283. %univ-atts;
  284. outputclass
  285. CDATA #IMPLIED >
  286. <!-- LONG NAME: Step Result -->
  287. <!ELEMENT stepresult (%itemgroup.cnt;)* >
  288. <!ATTLIST stepresult
  289. %univ-atts;
  290. outputclass
  291. CDATA #IMPLIED >
  292. <!-- LONG NAME: Result -->
  293. <!ELEMENT result (%section.notitle.cnt;)* >
  294. <!ATTLIST result
  295. %univ-atts;
  296. outputclass
  297. CDATA #IMPLIED >
  298. <!-- LONG NAME: Post Requirements -->
  299. <!ELEMENT postreq (%section.notitle.cnt;)* >
  300. <!ATTLIST postreq
  301. %univ-atts;
  302. outputclass
  303. CDATA #IMPLIED >
  304. <!-- ============================================================= -->
  305. <!-- SPECIALIZATION ATTRIBUTE DECLARATIONS -->
  306. <!-- ============================================================= -->
  307. <!ATTLIST task %global-atts; class CDATA "- topic/topic task/task " >
  308. <!ATTLIST taskbody %global-atts; class CDATA "- topic/body task/taskbody " >
  309. <!ATTLIST steps %global-atts; class CDATA "- topic/ol task/steps " >
  310. <!ATTLIST steps-unordered
  311. %global-atts; class CDATA "- topic/ul task/steps-unordered ">
  312. <!ATTLIST step %global-atts; class CDATA "- topic/li task/step " >
  313. <!ATTLIST cmd %global-atts; class CDATA "- topic/ph task/cmd " >
  314. <!ATTLIST substeps %global-atts; class CDATA "- topic/ol task/substeps " >
  315. <!ATTLIST substep %global-atts; class CDATA "- topic/li task/substep " >
  316. <!ATTLIST tutorialinfo
  317. %global-atts; class CDATA "- topic/itemgroup task/tutorialinfo ">
  318. <!ATTLIST info %global-atts; class CDATA "- topic/itemgroup task/info " >
  319. <!ATTLIST stepxmp %global-atts; class CDATA "- topic/itemgroup task/stepxmp " >
  320. <!ATTLIST stepresult %global-atts; class CDATA "- topic/itemgroup task/stepresult ">
  321. <!ATTLIST choices %global-atts; class CDATA "- topic/ul task/choices " >
  322. <!ATTLIST choice %global-atts; class CDATA "- topic/li task/choice " >
  323. <!ATTLIST result %global-atts; class CDATA "- topic/section task/result " >
  324. <!ATTLIST prereq %global-atts; class CDATA "- topic/section task/prereq " >
  325. <!ATTLIST postreq %global-atts; class CDATA "- topic/section task/postreq " >
  326. <!ATTLIST context %global-atts; class CDATA "- topic/section task/context " >
  327. <!ATTLIST choicetable %global-atts; class CDATA "- topic/simpletable task/choicetable ">
  328. <!ATTLIST chhead %global-atts; class CDATA "- topic/sthead task/chhead " >
  329. <!ATTLIST chrow %global-atts; class CDATA "- topic/strow task/chrow " >
  330. <!ATTLIST choptionhd %global-atts; class CDATA "- topic/stentry task/choptionhd ">
  331. <!ATTLIST chdeschd %global-atts; class CDATA "- topic/stentry task/chdeschd " >
  332. <!ATTLIST choption %global-atts; class CDATA "- topic/stentry task/choption " >
  333. <!ATTLIST chdesc %global-atts; class CDATA "- topic/stentry task/chdesc " >
  334. <!-- ================== End DITA Task =========================== -->