spec.dtd 31 KB

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