Mercurial > hg > lib > markup
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/doc.dtd Tue May 25 13:59:08 2021 -0400 @@ -0,0 +1,60 @@ +<!--* 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 '&#60;'>--> +<!ENTITY mdash "—"> +<!ENTITY ndash "–"> +<!ENTITY rsquo "’"> +<!ENTITY lsquo "‘"> +<!ENTITY rdquo "”"> +<!ENTITY ldquo "“"> +<!ENTITY ccedil "ç" > +<!ENTITY aacute "á" > +<!ENTITY eacute "é" > +<!ENTITY egrave "è" > +<!ENTITY ouml "ö" > +<!ENTITY uuml "ü" > +<!ENTITY copy "©" > + +<!-- 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; +]]>