xmlspec.dtd 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102
  1. <!-- ............................................................... -->
  2. <!-- XML specification DTD ......................................... -->
  3. <!-- ............................................................... -->
  4. <!--
  5. TYPICAL INVOCATION:
  6. # <!DOCTYPE spec PUBLIC
  7. # "-//W3C//DTD Specification::19980521//EN"
  8. # "http://www.w3.org/XML/1998/06/xmlspec-19980521.dtd">
  9. PURPOSE:
  10. This DTD was developed for use with the XML family of W3C
  11. specifications. It is an XML-compliant DTD based in part on
  12. the TEI Lite and Sweb DTDs.
  13. DEPENDENCIES:
  14. None.
  15. CHANGE HISTORY:
  16. The list of changes is at the end of the DTD.
  17. For all details, see the design report at:
  18. # <http://www.w3.org/XML/1998/06/xmlspec-report-19980521.htm>
  19. The "typical invocation" FPI always gets updated to reflect the
  20. date of the most recent changes.
  21. Search this file for "#" in the first column to see change history
  22. comments.
  23. MAINTAINER:
  24. Eve Maler
  25. ArborText Inc.
  26. elm@arbortext.com
  27. voice: +1 781 270 5750
  28. fax: +1 781 273 3760
  29. -->
  30. <!-- ............................................................... -->
  31. <!-- Entities for characters and symbols ........................... -->
  32. <!--
  33. #1998-03-10: maler: Added &ldquo; and &rdquo;.
  34. # Used 8879:1986-compatible decimal character
  35. # references.
  36. # Merged charent.mod file back into main file.
  37. #1998-05-14: maler: Fixed ldquo and rdquo. Gave mdash a real number.
  38. -->
  39. <!ENTITY lt "&#38;#60;">
  40. <!ENTITY gt "&#62;">
  41. <!ENTITY amp "&#38;#38;">
  42. <!ENTITY apos "&#39;">
  43. <!ENTITY quot "&#34;">
  44. <!ENTITY nbsp "&#160;">
  45. <!--
  46. <!ENTITY mdash "&#x2014;">
  47. <!ENTITY ldquo "&#x201C;">
  48. <!ENTITY rdquo "&#x201D;">
  49. -->
  50. <!-- ............................................................... -->
  51. <!-- Entities for classes of standalone elements ................... -->
  52. <!--
  53. #1997-10-16: maler: Added table to %illus.class;.
  54. #1997-11-28: maler: Added htable to %illus.class;.
  55. #1997-12-29: maler: IGNOREd table.
  56. #1998-03-10: maler: Removed SGML Open-specific %illus.class;.
  57. # Added "local" entities for customization.
  58. #1998-05-14: maler: Added issue to %note.class;.
  59. # Removed %[local.]statusp.class;.
  60. #1998-05-21: maler: Added constraintnote to %note.class;.
  61. -->
  62. <!ENTITY % local.p.class "">
  63. <!ENTITY % p.class "p
  64. %local.p.class;">
  65. <!ENTITY % local.list.class "">
  66. <!ENTITY % list.class "ulist|olist|slist|glist
  67. %local.list.class;">
  68. <!ENTITY % local.speclist.class "">
  69. <!ENTITY % speclist.class "orglist|blist
  70. %local.speclist.class;">
  71. <!ENTITY % local.note.class "">
  72. <!ENTITY % note.class "note|issue|wfcnote|vcnote
  73. |constraintnote %local.note.class;">
  74. <!ENTITY % local.illus.class "">
  75. <!ENTITY % illus.class "eg|graphic|scrap|htable
  76. %local.illus.class;">
  77. <!-- ............................................................... -->
  78. <!-- Entities for classes of phrase-level elements ................. -->
  79. <!--
  80. #1997-12-29: maler: Added xspecref to %ref.class;.
  81. #1998-03-10: maler: Added %ednote.class;.
  82. # Added "local" entities for customization.
  83. -->
  84. <!ENTITY % local.annot.class "">
  85. <!ENTITY % annot.class "footnote
  86. %local.annot.class;">
  87. <!ENTITY % local.termdef.class "">
  88. <!ENTITY % termdef.class "termdef|term
  89. %local.termdef.class;">
  90. <!ENTITY % local.emph.class "">
  91. <!ENTITY % emph.class "emph|quote
  92. %local.emph.class;">
  93. <!ENTITY % local.ref.class "">
  94. <!ENTITY % ref.class "bibref|specref|termref|titleref
  95. |xspecref|xtermref
  96. %local.ref.class;">
  97. <!ENTITY % local.loc.class "">
  98. <!ENTITY % loc.class "loc
  99. %local.loc.class;">
  100. <!ENTITY % local.tech.class "">
  101. <!ENTITY % tech.class "kw|nt|xnt|code
  102. %local.tech.class;">
  103. <!ENTITY % local.ednote.class "">
  104. <!ENTITY % ednote.class "ednote
  105. %local.ednote.class;">
  106. <!-- ............................................................... -->
  107. <!-- Entities for mixtures of standalone elements .................. -->
  108. <!--
  109. #1997-09-30: maler: Created %p.mix; to eliminate p from self.
  110. #1997-09-30: maler: Added %speclist.class; to %obj.mix; and %p.mix;.
  111. #1997-09-30: maler: Added %note.class; to %obj.mix; and %p.mix;.
  112. #1997-10-16: maler: Created %entry.mix;. Note that some elements
  113. # left out here are still allowed in termdef,
  114. # which entry can contain through %p.pcd.mix;.
  115. #1997-11-28: maler: Added %p.class; to %statusobj.mix;.
  116. #1998-03-10: maler: Added %ednote.class; to all mixtures, except
  117. # %p.mix; and %statusobj.mix;, because paragraphs
  118. # and status paragraphs will contain ednote
  119. # through %p.pcd.mix;.
  120. #1998-03-23: maler: Added %termdef.mix; (broken out from
  121. # %termdef.pcd.mix;).
  122. #1998-05-14: maler: Removed %statusobj.mix; and all mentions of
  123. # %statusp.mix;.
  124. -->
  125. <!ENTITY % div.mix
  126. "%p.class;|%list.class;|%speclist.class;|%note.class;
  127. |%illus.class;|%ednote.class;">
  128. <!ENTITY % obj.mix
  129. "%p.class;|%list.class;|%speclist.class;|%note.class;
  130. |%illus.class;|%ednote.class;">
  131. <!ENTITY % p.mix
  132. "%list.class;|%speclist.class;|%note.class;|%illus.class;">
  133. <!ENTITY % entry.mix
  134. "%list.class;|note|eg|graphic|%ednote.class;">
  135. <!ENTITY % hdr.mix
  136. "%p.class;|%list.class;|%ednote.class;">
  137. <!ENTITY % termdef.mix
  138. "%note.class;|%illus.class;">
  139. <!-- ............................................................... -->
  140. <!-- Entities for mixtures of #PCDATA and phrase-level elements .... -->
  141. <!-- Note that %termdef.pcd.mix contains %note.class;
  142. and %illus.class;, considered standalone elements. -->
  143. <!--
  144. #1997-09-30: maler: Added scrap and %note.class; to %termdef.pcd.mix;.
  145. #1997-11-28: maler: Added %loc.class; to %p.pcd.mix;.
  146. #1998-03-10: maler: Added %ednote.class; to all mixtures.
  147. #1998-03-23: maler: Moved some %termdef.pcd.mix; stuff out to
  148. # %termdef.mix;.
  149. #1998-05-14: maler: Removed %statusp.pcd.mix;.
  150. #1998-05-21: maler: Added constraint element to %eg.pcd.mix;.
  151. -->
  152. <!ENTITY % p.pcd.mix
  153. "#PCDATA|%annot.class;|%termdef.class;|%emph.class;
  154. |%ref.class;|%tech.class;|%loc.class;|%ednote.class;">
  155. <!ENTITY % head.pcd.mix
  156. "#PCDATA|%annot.class;|%emph.class;|%tech.class;|%ednote.class;">
  157. <!ENTITY % label.pcd.mix
  158. "#PCDATA|%annot.class;|%termdef.class;|%emph.class;|%tech.class;
  159. |%ednote.class;">
  160. <!ENTITY % eg.pcd.mix
  161. "#PCDATA|%annot.class;|%emph.class;|%ednote.class;|constraint">
  162. <!ENTITY % termdef.pcd.mix
  163. "#PCDATA|term|%emph.class;|%ref.class;|%tech.class;
  164. |%ednote.class;">
  165. <!ENTITY % bibl.pcd.mix
  166. "#PCDATA|%emph.class;|%ref.class;|%loc.class;|%ednote.class;">
  167. <!ENTITY % tech.pcd.mix
  168. "#PCDATA|%ednote.class;">
  169. <!ENTITY % loc.pcd.mix
  170. "#PCDATA|%loc.class;|%ednote.class;">
  171. <!-- ............................................................... -->
  172. <!-- Entities for customizable content models ...................... -->
  173. <!--
  174. #1998-03-10: maler: Added customization entities.
  175. #1998-05-14: maler: Allowed prevlocs and latestloc in either order.
  176. -->
  177. <!ENTITY % spec.mdl
  178. "header, front?, body, back?">
  179. <!ENTITY % header.mdl
  180. "title, subtitle?, version, w3c-designation, w3c-doctype,
  181. pubdate, notice*, publoc, ((prevlocs, latestloc?) |
  182. (latestloc, prevlocs?))?, authlist, status, abstract,
  183. pubstmt?, sourcedesc?, langusage, revisiondesc">
  184. <!ENTITY % pubdate.mdl
  185. "day?, month, year">
  186. <!-- ............................................................... -->
  187. <!-- Entities for common attributes ................................ -->
  188. <!-- key attribute:
  189. Optionally provides a sorting or indexing key, for cases when
  190. the element content is inappropriate for this purpose. -->
  191. <!ENTITY % key.att
  192. 'key CDATA #IMPLIED'>
  193. <!-- def attribute:
  194. Points to the element where the relevant definition can be
  195. found, using the IDREF mechanism. %def.att; is for optional
  196. def attributes, and %def-req.att; is for required def
  197. attributes. -->
  198. <!ENTITY % def.att
  199. 'def IDREF #IMPLIED'>
  200. <!ENTITY % def-req.att
  201. 'def IDREF #REQUIRED'>
  202. <!-- ref attribute:
  203. Points to the element where more information can be found,
  204. using the IDREF mechanism. %ref.att; is for optional
  205. ref attributes, and %ref-req.att; is for required ref
  206. attributes. -->
  207. <!ENTITY % ref.att
  208. 'ref IDREF #IMPLIED'>
  209. <!ENTITY % ref-req.att
  210. 'ref IDREF #REQUIRED'>
  211. <!--
  212. #1998-03-23: maler: Added show and actuate attributes to href.
  213. # Added semi-common xml:space attribute.
  214. -->
  215. <!-- HREF and source attributes:
  216. Points to the element where more information or source data
  217. can be found, using the URL (XLL simple link) mechanism.
  218. For some purposes, is associated with additional XLL
  219. attributes. %href.att; is for optional HREF attributes,
  220. and %href-req.att; is for required HREF attributes.
  221. %source-req.att; is for the source attribute, which
  222. is always required. -->
  223. <!ENTITY % href.att
  224. 'xml:link CDATA #FIXED "simple"
  225. href CDATA #IMPLIED
  226. show CDATA #FIXED "embed"
  227. actuate CDATA #FIXED "auto"'>
  228. <!ENTITY % href-req.att
  229. 'xml:link CDATA #FIXED "simple"
  230. href CDATA #REQUIRED
  231. show CDATA #FIXED "embed"
  232. actuate CDATA #FIXED "auto"'>
  233. <!ENTITY % source-req.att
  234. 'xml:link CDATA #FIXED "simple"
  235. xml:attributes NMTOKENS #FIXED "href source"
  236. source CDATA #REQUIRED
  237. show CDATA #FIXED "embed"
  238. actuate CDATA #FIXED "auto"'>
  239. <!-- xml:space attribute:
  240. Indicates that the element contains white space
  241. that the formatter or other application should retain,
  242. as appropriate to its function. -->
  243. <!ENTITY % xmlspace.att
  244. 'xml:space (default
  245. |preserve) #FIXED "preserve"'>
  246. <!-- Common attributes:
  247. Every element has an ID attribute (sometimes required,
  248. but usually optional) for links, and a Role attribute
  249. for extending the useful life of the DTD by allowing
  250. authors to make subclasses for any element. %common.att;
  251. is for common attributes where the ID is optional, and
  252. %common-idreq.att; is for common attributes where the
  253. ID is required. -->
  254. <!ENTITY % common.att
  255. 'id ID #IMPLIED
  256. role NMTOKEN #IMPLIED'>
  257. <!ENTITY % common-idreq.att
  258. 'id ID #REQUIRED
  259. role NMTOKEN #IMPLIED'>
  260. <!-- ............................................................... -->
  261. <!-- Common elements ............................................... -->
  262. <!-- head: Title on divisions, productions, and the like -->
  263. <!ELEMENT head (%head.pcd.mix;)*>
  264. <!ATTLIST head %common.att;>
  265. <!-- ............................................................... -->
  266. <!-- Major specification structure ................................. -->
  267. <!--
  268. #1998-03-10: maler: Made spec content model easily customizable.
  269. -->
  270. <!ELEMENT spec (%spec.mdl;)>
  271. <!ATTLIST spec %common.att;>
  272. <!ELEMENT front (div1+)>
  273. <!ATTLIST front %common.att;>
  274. <!ELEMENT body (div1+)>
  275. <!ATTLIST body %common.att;>
  276. <!--
  277. #1997-09-30: maler: Added inform-div1 to back content.
  278. -->
  279. <!ELEMENT back ((div1+, inform-div1*) | inform-div1+)>
  280. <!ATTLIST back %common.att;>
  281. <!ELEMENT div1 (head, (%div.mix;)*, div2*)>
  282. <!ATTLIST div1 %common.att;>
  283. <!--
  284. #1997-09-30: maler: Added inform-div1 declarations.
  285. -->
  286. <!-- inform-div1: Non-normative division in back matter -->
  287. <!ELEMENT inform-div1 (head, (%div.mix;)*, div2*)>
  288. <!ATTLIST inform-div1 %common.att;>
  289. <!ELEMENT div2 (head, (%div.mix;)*, div3*)>
  290. <!ATTLIST div2 %common.att;>
  291. <!ELEMENT div3 (head, (%div.mix;)*, div4*)>
  292. <!ATTLIST div3 %common.att;>
  293. <!ELEMENT div4 (head, (%div.mix;)*)>
  294. <!ATTLIST div4 %common.att;>
  295. <!-- Specification header .......... -->
  296. <!--
  297. #1998-03-10: maler: Made header content model easily customizable.
  298. -->
  299. <!ELEMENT header (%header.mdl;)>
  300. <!ATTLIST header %common.att;>
  301. <!-- Example of title: "Extensible Cheese Language (XCL)" -->
  302. <!ELEMENT title (#PCDATA)>
  303. <!ATTLIST title %common.att;>
  304. <!-- Example of subtitle: "A Cheesy Specification" -->
  305. <!ELEMENT subtitle (#PCDATA)>
  306. <!ATTLIST subtitle %common.att;>
  307. <!-- Example of version: "Version 666.0" -->
  308. <!ELEMENT version (#PCDATA)>
  309. <!ATTLIST version %common.att;>
  310. <!-- Example of w3c-designation: "WD-xcl-19991231" -->
  311. <!ELEMENT w3c-designation (#PCDATA)>
  312. <!ATTLIST w3c-designation %common.att;>
  313. <!-- Example of w3c-doctype: "World Wide Web Consortium Working
  314. Draft" -->
  315. <!ELEMENT w3c-doctype (#PCDATA)>
  316. <!ATTLIST w3c-doctype %common.att;>
  317. <!--
  318. #1998-03-10: maler: Made pubdate content model easily customizable.
  319. -->
  320. <!ELEMENT pubdate (%pubdate.mdl;)>
  321. <!ATTLIST pubdate %common.att;>
  322. <!ELEMENT day (#PCDATA)>
  323. <!ATTLIST day %common.att;>
  324. <!ELEMENT month (#PCDATA)>
  325. <!ATTLIST month %common.att;>
  326. <!ELEMENT year (#PCDATA)>
  327. <!ATTLIST year %common.att;>
  328. <!-- Example of notice: "This draft is for public comment..." -->
  329. <!ELEMENT notice (%hdr.mix;)+>
  330. <!ATTLIST notice %common.att;>
  331. <!ELEMENT publoc (loc+)>
  332. <!ATTLIST publoc %common.att;>
  333. <!ELEMENT prevlocs (loc+)>
  334. <!ATTLIST prevlocs %common.att;>
  335. <!ELEMENT latestloc (loc+)>
  336. <!ATTLIST latestloc %common.att;>
  337. <!-- loc (defined in "Phrase-level elements" below) -->
  338. <!ELEMENT authlist (author+)>
  339. <!ATTLIST authlist %common.att;>
  340. <!--
  341. #1997-09-30: maler: Made affiliation optional.
  342. #1998-03-10: maler: Made email optional.
  343. -->
  344. <!ELEMENT author (name, affiliation?, email?)>
  345. <!ATTLIST author %common.att;>
  346. <!ELEMENT name (#PCDATA)>
  347. <!ATTLIST name
  348. %common.att;
  349. %key.att;>
  350. <!ELEMENT affiliation (#PCDATA)>
  351. <!ATTLIST affiliation %common.att;>
  352. <!ELEMENT email (#PCDATA)>
  353. <!-- HREF attribute:
  354. email functions as a hypertext reference through this
  355. required attribute. Typically the reference would use
  356. the mailto: scheme. -->
  357. <!ATTLIST email
  358. %common.att;
  359. %href-req.att;>
  360. <!--
  361. #1998-05-15: maler: Changed status content from %statusobj.mix;
  362. # to plain %obj.mix;. statusp is obsolete.
  363. -->
  364. <!ELEMENT status (%obj.mix;)+>
  365. <!ATTLIST status %common.att;>
  366. <!ELEMENT abstract (%hdr.mix;)*>
  367. <!ATTLIST abstract %common.att;>
  368. <!ELEMENT pubstmt (%hdr.mix;)+>
  369. <!ATTLIST pubstmt %common.att;>
  370. <!ELEMENT sourcedesc (%hdr.mix;)+>
  371. <!ATTLIST sourcedesc %common.att;>
  372. <!ELEMENT langusage (language+)>
  373. <!ATTLIST langusage %common.att;>
  374. <!ELEMENT language (#PCDATA)>
  375. <!ATTLIST language %common.att;>
  376. <!ELEMENT revisiondesc (%hdr.mix;)+>
  377. <!ATTLIST revisiondesc %common.att;>
  378. <!-- ............................................................... -->
  379. <!-- Standalone elements ........................................... -->
  380. <!-- Paragraphs .................... -->
  381. <!--
  382. #1997-09-30: maler: Changed from %obj.mix; to %p.mix;.
  383. #1997-12-29: maler: Changed order of %p.mix; and %p.pcd.mix;
  384. # references.
  385. #1997-12-29: maler: Changed order of %statusobj.mix; and
  386. # %statusp.pcd.mix; references.
  387. #1998-05-14: maler: Removed statusp declarations.
  388. -->
  389. <!ELEMENT p (%p.pcd.mix;|%p.mix;)*>
  390. <!ATTLIST p %common.att;>
  391. <!-- Lists ......................... -->
  392. <!ELEMENT ulist (item+)>
  393. <!-- spacing attribute:
  394. Use "normal" to get normal vertical spacing for items;
  395. use "compact" to get less spacing. The default is dependent
  396. on the stylesheet. -->
  397. <!ATTLIST ulist
  398. %common.att;
  399. spacing (normal|compact) #IMPLIED>
  400. <!ELEMENT olist (item+)>
  401. <!-- spacing attribute:
  402. Use "normal" to get normal vertical spacing for items;
  403. use "compact" to get less spacing. The default is dependent
  404. on the stylesheet. -->
  405. <!ATTLIST olist
  406. %common.att;
  407. spacing (normal|compact) #IMPLIED>
  408. <!ELEMENT item (%obj.mix;)+>
  409. <!ATTLIST item %common.att;>
  410. <!ELEMENT slist (sitem+)>
  411. <!ATTLIST slist %common.att;>
  412. <!ELEMENT sitem (%p.pcd.mix;)*>
  413. <!ATTLIST sitem %common.att;>
  414. <!ELEMENT glist (gitem+)>
  415. <!ATTLIST glist %common.att;>
  416. <!ELEMENT gitem (label, def)>
  417. <!ATTLIST gitem %common.att;>
  418. <!ELEMENT label (%label.pcd.mix;)*>
  419. <!ATTLIST label %common.att;>
  420. <!ELEMENT def (%obj.mix;)*>
  421. <!ATTLIST def %common.att;>
  422. <!-- Special lists ................. -->
  423. <!ELEMENT blist (bibl+)>
  424. <!ATTLIST blist %common.att;>
  425. <!ELEMENT bibl (%bibl.pcd.mix;)*>
  426. <!-- HREF attribute:
  427. bibl optionally functions as a hypertext reference to the
  428. referred-to resource through this attribute. -->
  429. <!ATTLIST bibl
  430. %common.att;
  431. %href.att;
  432. %key.att;>
  433. <!ELEMENT orglist (member+)>
  434. <!ATTLIST orglist %common.att;>
  435. <!--
  436. #1997-09-30: maler: Added optional affiliation.
  437. -->
  438. <!ELEMENT member (name, affiliation?, role?)>
  439. <!ATTLIST member %common.att;>
  440. <!-- name (defined in "Specification header" above) -->
  441. <!-- affiliation (defined in "Specification header" above) -->
  442. <!ELEMENT role (#PCDATA)>
  443. <!ATTLIST role %common.att;>
  444. <!-- Notes ......................... -->
  445. <!ELEMENT note (%obj.mix;)+>
  446. <!ATTLIST note %common.att;>
  447. <!--
  448. #1998-05-14: maler: Declared issue element.
  449. -->
  450. <!ELEMENT issue (%obj.mix;)+>
  451. <!ATTLIST issue %common-idreq.att;>
  452. <!ELEMENT wfcnote (head, (%obj.mix;)+)>
  453. <!-- ID attribute:
  454. wfcnote must have an ID so that it can be pointed to
  455. from a wfc element in a production. -->
  456. <!ATTLIST wfcnote
  457. %common-idreq.att;>
  458. <!ELEMENT vcnote (head, (%obj.mix;)+)>
  459. <!-- ID attribute:
  460. vcnote must have an ID so that it can be pointed to
  461. from a vc element in a production. -->
  462. <!ATTLIST vcnote
  463. %common-idreq.att;>
  464. <!--
  465. #1998-05-21: maler: Declared generic constraintnote element.
  466. -->
  467. <!ELEMENT constraintnote (head, (%obj.mix;)+)>
  468. <!-- ID attribute:
  469. cnote must have an ID so that it can be pointed to
  470. from a constraint element in a production. -->
  471. <!-- type attribute:
  472. cnote must have a type value keyword so that it can be
  473. correctly characterized in the specification. -->
  474. <!ATTLIST constraintnote
  475. %common-idreq.att;
  476. type NMTOKEN #REQUIRED>
  477. <!-- Illustrations ................. -->
  478. <!--
  479. #1998-03-23: maler: Added xml:space attribute.
  480. -->
  481. <!ELEMENT eg (%eg.pcd.mix;)*>
  482. <!ATTLIST eg
  483. %common.att;
  484. %xmlspace.att;>
  485. <!ELEMENT graphic EMPTY>
  486. <!-- source attribute:
  487. The graphic data must reside at the location pointed to.
  488. This is a hypertext reference, but for practical purposes,
  489. for now it should just be a pathname. -->
  490. <!ATTLIST graphic
  491. %common.att;
  492. %source-req.att;
  493. alt CDATA #IMPLIED>
  494. <!--
  495. #1997-11-28: maler: Added prodgroup to scrap and defined it.
  496. #1998-05-21: maler: Added constraint to prod.
  497. -->
  498. <!ELEMENT scrap (head, (prodgroup+ | prod+ | bnf))>
  499. <!-- lang attribute:
  500. The scrap can link to a description of the language used,
  501. found in a language element in the header. -->
  502. <!ATTLIST scrap
  503. %common.att;
  504. lang IDREF #IMPLIED>
  505. <!ELEMENT prodgroup (prod+)>
  506. <!-- pcw<n> attributes:
  507. Presentational attributes to control the width
  508. of the "pseudo-table" columns used to output
  509. groups of productions. -->
  510. <!ATTLIST prodgroup
  511. %common.att;
  512. pcw1 CDATA #IMPLIED
  513. pcw2 CDATA #IMPLIED
  514. pcw3 CDATA #IMPLIED
  515. pcw4 CDATA #IMPLIED
  516. pcw5 CDATA #IMPLIED
  517. >
  518. <!ELEMENT prod (lhs, (rhs, (com|wfc|vc|constraint)*)+)>
  519. <!-- ID attribute:
  520. The production must have an ID so that cross-references
  521. (specref) and mentions of nonterminals (nt) can link to
  522. it. -->
  523. <!ATTLIST prod
  524. %common-idreq.att;>
  525. <!ELEMENT lhs (#PCDATA)>
  526. <!ATTLIST lhs %common.att;>
  527. <!ELEMENT rhs (#PCDATA|nt|xnt|com)*>
  528. <!ATTLIST rhs %common.att;>
  529. <!-- nt and xnt (defined in "Phrase-level elements" below) -->
  530. <!--
  531. #1997-11-28: maler: Added loc and bibref to com content.
  532. -->
  533. <!ELEMENT com (#PCDATA|loc|bibref)*>
  534. <!ATTLIST com %common.att;>
  535. <!-- wfc: Should generate the head of the wfcnote pointed to -->
  536. <!ELEMENT wfc EMPTY>
  537. <!-- def attribute:
  538. Each well formedness tagline in a production must link to the
  539. wfcnote that defines it. -->
  540. <!ATTLIST wfc
  541. %def-req.att;
  542. %common.att;>
  543. <!-- vc: Should generate the head of the vcnote pointed to -->
  544. <!ELEMENT vc EMPTY>
  545. <!-- def attribute:
  546. Each validity tagline in a production must link to the vcnote
  547. that defines it. -->
  548. <!ATTLIST vc
  549. %def-req.att;
  550. %common.att;>
  551. <!--
  552. #1998-05-21: maler: Declared generic constraint element.
  553. -->
  554. <!-- constraint: Should generate the head of the constraintnote
  555. pointed to -->
  556. <!ELEMENT constraint EMPTY>
  557. <!-- def attribute:
  558. Each constraint tagline in a production must link to the
  559. constraint note that defines it. -->
  560. <!ATTLIST constraint
  561. %def-req.att;
  562. %common.att;>
  563. <!--
  564. #1998-03-23: maler: Added xml:space attribute.
  565. -->
  566. <!-- bnf: Un-marked-up production -->
  567. <!ELEMENT bnf (%eg.pcd.mix;)*>
  568. <!ATTLIST bnf
  569. %common.att;
  570. %xmlspace.att;>
  571. <!--
  572. #1997-10-16: maler: Added table mechanism.
  573. #1997-11-28: maler: Added non-null system ID to entity declaration.
  574. # Added HTML table module.
  575. #1997-12-29: maler: IGNOREd SGML Open table model.
  576. #1998-03-10: maler: Removed SGML Open table model.
  577. # Merged html-tbl.mod file into main file.
  578. # Added %common.att; to all HTML table elements.
  579. #1998-05-14: maler: Replaced table model with full HTML 4.0 model.
  580. # Removed htable in favor of table.
  581. # Removed htbody in favor of tbody.
  582. -->
  583. <!ENTITY % cellhalign.att
  584. 'align (left|center
  585. |right|justify
  586. |char) #IMPLIED
  587. char CDATA #IMPLIED
  588. charoff CDATA #IMPLIED'>
  589. <!ENTITY % cellvalign.att
  590. 'valign (top|middle
  591. |bottom
  592. |baseline) #IMPLIED'>
  593. <!ENTITY % thtd.att
  594. 'abbr CDATA #IMPLIED
  595. axis CDATA #IMPLIED
  596. headers IDREFS #IMPLIED
  597. scope (row
  598. |col
  599. |rowgroup
  600. |colgroup) #IMPLIED
  601. rowspan NMTOKEN "1"
  602. colspan NMTOKEN "1"'>
  603. <!ENTITY % width.att
  604. 'width CDATA #IMPLIED'>
  605. <!ENTITY % span.att
  606. 'span NMTOKEN "1"'>
  607. <!ELEMENT table
  608. (caption?, (col*|colgroup*), thead?, tfoot?, tbody+)>
  609. <!ATTLIST table
  610. %common.att;
  611. %width.att;
  612. summary CDATA #IMPLIED
  613. border CDATA #IMPLIED
  614. frame (void|above
  615. |below|hsides
  616. |lhs|rhs
  617. |vsides|box
  618. |border) #IMPLIED
  619. rules (none|groups
  620. |rows|cols
  621. |all) #IMPLIED
  622. cellspacing CDATA #IMPLIED
  623. cellpadding CDATA #IMPLIED>
  624. <!ELEMENT caption (%p.pcd.mix;)*>
  625. <!ATTLIST caption %common.att;>
  626. <!ELEMENT col EMPTY>
  627. <!ATTLIST col
  628. %common.att;
  629. %span.att;
  630. %width.att;
  631. %cellhalign.att;
  632. %cellvalign.att;>
  633. <!ELEMENT colgroup (col)*>
  634. <!ATTLIST colgroup
  635. %common.att;
  636. %span.att;
  637. %width.att;
  638. %cellhalign.att;
  639. %cellvalign.att;>
  640. <!ELEMENT thead (tr)+>
  641. <!ATTLIST thead
  642. %common.att;
  643. %cellhalign.att;
  644. %cellvalign.att;>
  645. <!ELEMENT tfoot (tr)+>
  646. <!ATTLIST tfoot
  647. %common.att;
  648. %cellhalign.att;
  649. %cellvalign.att;>
  650. <!ELEMENT tbody (tr)+>
  651. <!ATTLIST tbody
  652. %common.att;
  653. %cellhalign.att;
  654. %cellvalign.att;>
  655. <!ELEMENT tr (th|td)+>
  656. <!ATTLIST tr
  657. %common.att;
  658. %cellhalign.att;
  659. %cellvalign.att;>
  660. <!ELEMENT th (%p.pcd.mix;|%p.mix;)*>
  661. <!ATTLIST th
  662. %common.att;
  663. %thtd.att;
  664. %cellhalign.att;
  665. %cellvalign.att;>
  666. <!ELEMENT td (%p.pcd.mix;|%p.mix;)*>
  667. <!ATTLIST td
  668. %common.att;
  669. %thtd.att;
  670. %cellhalign.att;
  671. %cellvalign.att;>
  672. <!-- ............................................................... -->
  673. <!-- Phrase-level elements ......................................... -->
  674. <!-- bibref: Should generate, in square brackets, "key" on bibl -->
  675. <!ELEMENT bibref EMPTY>
  676. <!-- ref attribute:
  677. A bibliography reference must link to the bibl element that
  678. describes the resource. -->
  679. <!ATTLIST bibref
  680. %common.att;
  681. %ref-req.att;>
  682. <!ELEMENT code (%tech.pcd.mix;)*>
  683. <!ATTLIST code %common.att;>
  684. <!--
  685. #1998-03-10: maler: Declared ednote and related elements.
  686. -->
  687. <!ELEMENT ednote (name?, date?, edtext)>
  688. <!ATTLIST ednote %common.att;>
  689. <!ELEMENT date (#PCDATA)>
  690. <!ATTLIST date %common.att;>
  691. <!ELEMENT edtext (#PCDATA)>
  692. <!ATTLIST edtext %common.att;>
  693. <!ELEMENT emph (#PCDATA)>
  694. <!ATTLIST emph %common.att;>
  695. <!-- footnote: Both footnote content and call to footnote -->
  696. <!ELEMENT footnote (%obj.mix;)+>
  697. <!ATTLIST footnote %common.att;>
  698. <!ELEMENT kw (%tech.pcd.mix;)*>
  699. <!ATTLIST kw %common.att;>
  700. <!ELEMENT loc (#PCDATA)>
  701. <!-- HREF attribute:
  702. The purpose of a loc element is to function as a hypertext
  703. link to a resource. (Ideally, the content of loc will also
  704. mention the URI of the resource, so that readers of the
  705. printed version will be able to locate the resource.) -->
  706. <!ATTLIST loc
  707. %common.att;
  708. %href-req.att;>
  709. <!ELEMENT nt (#PCDATA)>
  710. <!-- def attribute:
  711. The nonterminal must link to the production that defines
  712. it. -->
  713. <!ATTLIST nt
  714. %common.att;
  715. %def-req.att;>
  716. <!--
  717. #1998-03-10: maler: Declared quote.
  718. -->
  719. <!-- quote: Scare quotes and other purely presentational quotes -->
  720. <!ELEMENT quote (%p.pcd.mix;)*>
  721. <!ATTLIST quote %common.att;>
  722. <!-- specref: Should generate italic "[n.n], Section Title" for
  723. div, "n" for numbered item, "[n]" for production, or
  724. "Issue n" for issue -->
  725. <!ELEMENT specref EMPTY>
  726. <!-- ref attribute:
  727. The purpose of a specref element is to link to a div, item
  728. in an olist, or production in the current spec. -->
  729. <!ATTLIST specref
  730. %common.att;
  731. %ref-req.att;>
  732. <!ELEMENT term (#PCDATA)>
  733. <!ATTLIST term %common.att;>
  734. <!ELEMENT termdef (%termdef.pcd.mix;|%termdef.mix;)*>
  735. <!-- ID attribute:
  736. A term definition must have an ID so that it can be linked
  737. to from termref elements. -->
  738. <!-- term attribute:
  739. The canonical form of the term or phrase being defined must
  740. appear in this attribute, even if the term or phrase also
  741. appears in the element content in identical form (e.g., in
  742. the term element). -->
  743. <!ATTLIST termdef
  744. %common-idreq.att;
  745. term CDATA #REQUIRED>
  746. <!ELEMENT termref (#PCDATA)>
  747. <!-- ref attribute:
  748. A term reference must link to the termdef element that
  749. defines the term. -->
  750. <!ATTLIST termref
  751. %common.att;
  752. %def-req.att;>
  753. <!ELEMENT titleref (#PCDATA)>
  754. <!-- HREF attribute:
  755. A title reference can optionally function as a hypertext
  756. link to the resource with this title. -->
  757. <!ATTLIST titleref
  758. %common.att;
  759. %href.att;>
  760. <!ELEMENT xnt (#PCDATA)>
  761. <!-- HREF attribute:
  762. The nonterminal must hyperlink to a resource that serves
  763. to define it (e.g., a production in a related XML
  764. specification). -->
  765. <!ATTLIST xnt
  766. %common.att;
  767. %href-req.att;>
  768. <!--
  769. #1997-12-29: maler: Declared xspecref.
  770. -->
  771. <!ELEMENT xspecref (#PCDATA)>
  772. <!-- HREF attribute:
  773. The spec reference must hyperlink to the resource to
  774. cross-refer to (e.g., a section in a related XML
  775. specification). -->
  776. <!ATTLIST xspecref
  777. %common.att;
  778. %href-req.att;>
  779. <!ELEMENT xtermref (#PCDATA)>
  780. <!-- HREF attribute:
  781. The term reference must hyperlink to the resource that
  782. serves to define the term (e.g., a term definition in
  783. a related XML specification). -->
  784. <!ATTLIST xtermref
  785. %common.att;
  786. %href-req.att;>
  787. <!-- ............................................................... -->
  788. <!-- Unused elements for ADEPT ..................................... -->
  789. <!--
  790. #1997-09-30: maler: Added unusued elements.
  791. #1997-10-14: maler: Fixed div to move nested div to the mixture.
  792. #1998-05-14: maler: Added key-term, htable, and htbody.
  793. -->
  794. <!-- The following elements are purposely declared but never
  795. referenced. Declaring them allows them to be pasted from
  796. an HTML document or an earlier version of an XML spec document
  797. into a document using this DTD in ADEPT. The ATD Context
  798. Transformation mechanism will try to convert them to the
  799. appropriate element for this DTD. While this conversion
  800. will not work for all fragments, it does allow many cases
  801. to work reasonably well. -->
  802. <!ELEMENT div
  803. (head?, (%div.mix;|ul|ol|h1|h2|h3|h4|h5|h6|div)*)>
  804. <!ELEMENT h1 (%head.pcd.mix;|em|a)*>
  805. <!ELEMENT h2 (%head.pcd.mix;|em|a)*>
  806. <!ELEMENT h3 (%head.pcd.mix;|em|a)*>
  807. <!ELEMENT h4 (%head.pcd.mix;|em|a)*>
  808. <!ELEMENT h5 (%head.pcd.mix;|em|a)*>
  809. <!ELEMENT h6 (%head.pcd.mix;|em|a)*>
  810. <!ELEMENT pre (%eg.pcd.mix;|em)*>
  811. <!ELEMENT ul (item|li)*>
  812. <!ELEMENT ol (item|li)*>
  813. <!ELEMENT li (#PCDATA|%obj.mix;)*>
  814. <!ELEMENT em (#PCDATA)>
  815. <!ELEMENT a (#PCDATA)>
  816. <!ELEMENT key-term (#PCDATA)>
  817. <!ELEMENT htable
  818. (caption?, (col*|colgroup*), thead?, tfoot?, tbody+)>
  819. <!ELEMENT htbody (tr)+>
  820. <!ELEMENT statusp (%p.pcd.mix;|%p.mix;)*>
  821. <!-- ............................................................... -->
  822. <!-- Change history ................................................ -->
  823. <!--
  824. #1997-08-18: maler
  825. #- Did a major revision.
  826. #1997-09-10: maler
  827. #- Updated FPI.
  828. #- Removed namekey element and put key attribute on name element.
  829. #- Made statusp element and supporting entities.
  830. #- Added slist element with sitem+ content.
  831. #- Required head on scrap and added new bnf subelement.
  832. #- Added an xnt element and allowed it and nt in regular text and rhs.
  833. #- Removed the ntref element.
  834. #- Added back the com element to the content of rhs.
  835. #- Added a key attribute to bibl.
  836. #- Removed the ident element.
  837. #- Added a term element to be used inside termdef.
  838. #- Added an xtermref element parallel to termref.
  839. #- Beefed up DTD comments.
  840. #1997-09-12: maler
  841. #- Allowed term element in general text.
  842. #- Changed bibref to EMPTY.
  843. #- Added ref.class to termdef.pcd.mix.
  844. #1997-09-14: maler
  845. #- Changed main attribute of xtermref from def to href.
  846. #- Added termdef.class to label contents.
  847. #1997-09-30: maler
  848. #- Added character entity module and added new entities.
  849. #- Removed p from appearing directly in self; created %p.mix;.
  850. #- Added inform-div (non-normative division) element.
  851. #- Fixed xtermref comment to mention HREF, not ref.
  852. #- Extended orglist model to allow optional affiliation.
  853. #- Modified author to make affiliation optional.
  854. #- Added %speclist.class; and %note.class; to %obj.mix; and %p.mix;.
  855. #- Added %note.class; and %illus.class; to %termdef.pcd.mix;.
  856. #- Added unused HTML elements.
  857. #- Put empty system ID next to public ID in entity declarations.
  858. #1997-10-14: maler
  859. #- Fixed "unused" div content model to move nested div to mixture.
  860. #1997-10-16: maler
  861. #- Added SGML Open Exchange tables.
  862. #1997-11-28: maler
  863. #- Added support for prodgroup and its attributes.
  864. #- Added support for HTML tables.
  865. #- Added loc and bibref to content of com.
  866. #- Added loc to general p content models.
  867. #- Allowed p as alternative to statusp in status.
  868. #- Added non-null system IDs to external parameter entity declarations.
  869. #- (Modified the SGML Open table module to make it XML-compliant.)
  870. #- (Modified the character entity module.)
  871. #1997-12-29: maler
  872. #- Moved #PCDATA occurrences to come before GIs in content models.
  873. #- Removed use of the SGML Open table module.
  874. #- Added xspecref element.
  875. #- Ensured that all FPIs contain 4-digit year.
  876. #- (Modified the character entity module.)
  877. #1998-03-10: maler
  878. #- Merged the character entity and table modules into the main file.
  879. #- Added ldquo and rdquo entities.
  880. #- Added common attributes to prodgroup.
  881. #- Made the email element in header optional.
  882. #- Removed reference to the SGML Open table model.
  883. #- Added ednote element.
  884. #- Added quote element.
  885. #- Updated XLink usage to reflect 3 March 1998 WD.
  886. #- Added "local" entities to the class entities for customization.
  887. #- Parameterized several content models to allow for customization.
  888. #1998-03-23: maler
  889. #- Cleaned up some comments and removed some others.
  890. #- Added xml:space semi-common attribute to eg and bnf elements.
  891. #- Added show and embed attributes on all the uses of href.
  892. #- Added %common.att; to all HTML table elements.
  893. #- Added a real URI to the "typical invocation" comment.
  894. #1998-05-14: maler
  895. #- Fixed mdash, ldquo, and rdquo character entities.
  896. #- Switched to the full HTML 4.0 table model.
  897. #- Removed htable/htbody elements and replaced them with table/tbody.
  898. #- Added issue element to %note.class; and declared it.
  899. #- Allowed prevlocs and latestloc in either order.
  900. #- Added key-term, htable, htbody, and statusp as unused elements.
  901. #- Removed real statusp element in favor of plain p.
  902. #1998-05-21: maler
  903. #- Declared generic constraint and constraintnote elements.
  904. #- Added constraintnote to %note.class;.
  905. #- Added constraint to %eg.pcd.mix; and prod content model.
  906. -->
  907. <!-- ............................................................... -->
  908. <!-- End of XML specification DTD .................................. -->
  909. <!-- ............................................................... -->