comparison 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
comparison
equal deleted inserted replaced
1:f005daf4488a 2:2b399c612a3e
1 <!--* DTD for my XML documents *-->
2 <!ELEMENT doc (head?,body)>
3 <!ATTLIST doc style CDATA #IMPLIED>
4 <!ENTITY % bits 'emph|code|name|link|term'>
5 <!ENTITY % chunks 'p|list|display|note|image|table|figure'>
6 <!ELEMENT head (title+,author+,(date|note)*,style?)>
7 <!ELEMENT title (#PCDATA|%bits;)*>
8 <!ELEMENT author (#PCDATA|%bits;)*>
9 <!ELEMENT date (#PCDATA)>
10 <!ELEMENT style (#PCDATA)>
11 <!ELEMENT body (div+)>
12 <!ELEMENT div (title,(div|%chunks;)+)>
13 <!ATTLIST div id ID #IMPLIED>
14 <!ELEMENT p (#PCDATA|%bits;)*>
15 <!ELEMENT display (#PCDATA|%bits;)*>
16 <!ELEMENT note (#PCDATA|%bits;)*>
17 <!ELEMENT list ((note|item)+)>
18 <!ATTLIST list type (normal|enum|defn|1defn|naked|tdefn|2col|ndivs) 'normal'
19 term-width CDATA "30pt"
20 term-align (left|center|right|justify|char) "right"
21 indent CDATA #IMPLIED>
22 <!ELEMENT emph (#PCDATA|name)*>
23 <!ATTLIST emph color CDATA #IMPLIED>
24 <!ELEMENT code (#PCDATA|%bits;)*>
25 <!ELEMENT name (#PCDATA)>
26 <!ELEMENT term EMPTY>
27 <!ATTLIST term def NMTOKENS #REQUIRED>
28 <!ELEMENT item (#PCDATA|%chunks;|%bits;)*>
29 <!ATTLIST item term CDATA #IMPLIED>
30 <!ELEMENT link (#PCDATA|%bits;)*>
31 <!ATTLIST link href CDATA #IMPLIED
32 target CDATA #IMPLIED
33 name CDATA #IMPLIED>
34 <!ELEMENT image (#PCDATA)>
35 <!ATTLIST image source CDATA #REQUIRED>
36 <!ELEMENT figure (%chunks;|caption)*>
37 <!ELEMENT caption (#PCDATA|%bits;)*>
38 <!-- Why was this here????? <!ENTITY lt '&#38;#60;'>-->
39 <!ENTITY mdash "&#8212;">
40 <!ENTITY ndash "&#8211;">
41 <!ENTITY rsquo "&#8217;">
42 <!ENTITY lsquo "&#8216;">
43 <!ENTITY rdquo "&#8221;">
44 <!ENTITY ldquo "&#8220;">
45 <!ENTITY ccedil "&#231;" >
46 <!ENTITY aacute "&#225;" >
47 <!ENTITY eacute "&#233;" >
48 <!ENTITY egrave "&#232;" >
49 <!ENTITY ouml "&#246;" >
50 <!ENTITY uuml "&#252;" >
51 <!ENTITY copy "&#169;" >
52
53 <!-- allow for table under control of withTables entity.
54 Either use -i withTables when invoking doxt or nsgmlx to enable,
55 or put <!ENTITY % withTables 'INCLUDE'> in your internal subset -->
56 <!ENTITY % withTables 'IGNORE'>
57 <![%withTables;[
58 <!ENTITY % tableDTD SYSTEM 'html-table.dtd'>
59 %tableDTD;
60 ]]>