annotate xml/doc.dtd @ 13:1cd5c7952aaa default tip

fix failure to read first line of Air/Lava, keep me from swimming in Lava, again!
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 30 Jan 2022 14:49:33 -0500
parents 2b399c612a3e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 <!--* DTD for my XML documents *-->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 <!ELEMENT doc (head?,body)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 <!ATTLIST doc style CDATA #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 <!ENTITY % bits 'emph|code|name|link|term'>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 <!ENTITY % chunks 'p|list|display|note|image|table|figure'>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 <!ELEMENT head (title+,author+,(date|note)*,style?)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 <!ELEMENT title (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 <!ELEMENT author (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 <!ELEMENT date (#PCDATA)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 <!ELEMENT style (#PCDATA)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11 <!ELEMENT body (div+)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 <!ELEMENT div (title,(div|%chunks;)+)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13 <!ATTLIST div id ID #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
14 <!ELEMENT p (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
15 <!ELEMENT display (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
16 <!ELEMENT note (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
17 <!ELEMENT list ((note|item)+)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
18 <!ATTLIST list type (normal|enum|defn|1defn|naked|tdefn|2col|ndivs) 'normal'
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19 term-width CDATA "30pt"
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
20 term-align (left|center|right|justify|char) "right"
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
21 indent CDATA #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
22 <!ELEMENT emph (#PCDATA|name)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
23 <!ATTLIST emph color CDATA #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
24 <!ELEMENT code (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
25 <!ELEMENT name (#PCDATA)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
26 <!ELEMENT term EMPTY>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
27 <!ATTLIST term def NMTOKENS #REQUIRED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
28 <!ELEMENT item (#PCDATA|%chunks;|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
29 <!ATTLIST item term CDATA #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
30 <!ELEMENT link (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
31 <!ATTLIST link href CDATA #IMPLIED
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
32 target CDATA #IMPLIED
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
33 name CDATA #IMPLIED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
34 <!ELEMENT image (#PCDATA)>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
35 <!ATTLIST image source CDATA #REQUIRED>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
36 <!ELEMENT figure (%chunks;|caption)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
37 <!ELEMENT caption (#PCDATA|%bits;)*>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
38 <!-- Why was this here????? <!ENTITY lt '&#38;#60;'>-->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
39 <!ENTITY mdash "&#8212;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
40 <!ENTITY ndash "&#8211;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
41 <!ENTITY rsquo "&#8217;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
42 <!ENTITY lsquo "&#8216;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
43 <!ENTITY rdquo "&#8221;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
44 <!ENTITY ldquo "&#8220;">
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
45 <!ENTITY ccedil "&#231;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
46 <!ENTITY aacute "&#225;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
47 <!ENTITY eacute "&#233;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
48 <!ENTITY egrave "&#232;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
49 <!ENTITY ouml "&#246;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
50 <!ENTITY uuml "&#252;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
51 <!ENTITY copy "&#169;" >
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
52
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
53 <!-- allow for table under control of withTables entity.
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
54 Either use -i withTables when invoking doxt or nsgmlx to enable,
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
55 or put <!ENTITY % withTables 'INCLUDE'> in your internal subset -->
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
56 <!ENTITY % withTables 'IGNORE'>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
57 <![%withTables;[
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
58 <!ENTITY % tableDTD SYSTEM 'html-table.dtd'>
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
59 %tableDTD;
2b399c612a3e from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
60 ]]>