view xml/doc.dtd @ 2:2b399c612a3e

from elsewhere, pbly out of date
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 25 May 2021 13:59:08 -0400
parents
children
line wrap: on
line source

<!--* DTD for my XML documents *-->
<!ELEMENT doc (head?,body)>
<!ATTLIST doc style CDATA #IMPLIED>
<!ENTITY % bits 'emph|code|name|link|term'>
<!ENTITY % chunks 'p|list|display|note|image|table|figure'>
<!ELEMENT head (title+,author+,(date|note)*,style?)>
<!ELEMENT title (#PCDATA|%bits;)*>
<!ELEMENT author (#PCDATA|%bits;)*>
<!ELEMENT date (#PCDATA)>
<!ELEMENT style (#PCDATA)>
<!ELEMENT body (div+)>
<!ELEMENT div (title,(div|%chunks;)+)>
<!ATTLIST div id ID #IMPLIED>
<!ELEMENT p (#PCDATA|%bits;)*>
<!ELEMENT display (#PCDATA|%bits;)*>
<!ELEMENT note (#PCDATA|%bits;)*>
<!ELEMENT list ((note|item)+)>
<!ATTLIST list type (normal|enum|defn|1defn|naked|tdefn|2col|ndivs) 'normal'
               term-width CDATA "30pt"
               term-align (left|center|right|justify|char) "right"
               indent CDATA #IMPLIED>
<!ELEMENT emph (#PCDATA|name)*>
<!ATTLIST emph color CDATA #IMPLIED>
<!ELEMENT code (#PCDATA|%bits;)*>
<!ELEMENT name (#PCDATA)>
<!ELEMENT term EMPTY>
<!ATTLIST term def NMTOKENS #REQUIRED>
<!ELEMENT item (#PCDATA|%chunks;|%bits;)*>
<!ATTLIST item term CDATA #IMPLIED>
<!ELEMENT link (#PCDATA|%bits;)*>
<!ATTLIST link href CDATA #IMPLIED
               target CDATA #IMPLIED
               name CDATA #IMPLIED>
<!ELEMENT image (#PCDATA)>
<!ATTLIST image source CDATA #REQUIRED>
<!ELEMENT figure (%chunks;|caption)*>
<!ELEMENT caption (#PCDATA|%bits;)*>
<!-- Why was this here????? <!ENTITY lt '&#38;#60;'>-->
<!ENTITY mdash   "&#8212;">
<!ENTITY ndash   "&#8211;">
<!ENTITY rsquo   "&#8217;">
<!ENTITY lsquo   "&#8216;">
<!ENTITY rdquo   "&#8221;">
<!ENTITY ldquo   "&#8220;">
<!ENTITY ccedil "&#231;" >
<!ENTITY aacute "&#225;" >
<!ENTITY eacute "&#233;" >
<!ENTITY egrave "&#232;" >
<!ENTITY ouml   "&#246;" >
<!ENTITY uuml   "&#252;" >
<!ENTITY copy   "&#169;" >

<!-- allow for table under control of withTables entity.
     Either use -i withTables when invoking doxt or nsgmlx to enable,
     or put <!ENTITY % withTables 'INCLUDE'> in your internal subset -->
<!ENTITY % withTables 'IGNORE'>
<![%withTables;[
<!ENTITY % tableDTD SYSTEM 'html-table.dtd'>
%tableDTD;
]]>