home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 October / PCWorld_2000-10_cd1.bin / Software / TemaCD / xmlspy / xmlspy30c.exe / Main / spec.dtd < prev    next >
Encoding:
Text File  |  2000-09-11  |  33.9 KB  |  853 lines

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