Mercurial > hg > lib > markup
annotate xml/doc.dtd @ 4:56508a6033a9
minutor chunk hacking
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Tue, 25 May 2021 14:01:26 -0400 |
parents | 2b399c612a3e |
children |
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 '&#60;'>--> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
39 <!ENTITY mdash "—"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
40 <!ENTITY ndash "–"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
41 <!ENTITY rsquo "’"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
42 <!ENTITY lsquo "‘"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
43 <!ENTITY rdquo "”"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
44 <!ENTITY ldquo "“"> |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
45 <!ENTITY ccedil "ç" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
46 <!ENTITY aacute "á" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
47 <!ENTITY eacute "é" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
48 <!ENTITY egrave "è" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
49 <!ENTITY ouml "ö" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
50 <!ENTITY uuml "ü" > |
2b399c612a3e
from elsewhere, pbly out of date
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff
changeset
|
51 <!ENTITY copy "©" > |
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 ]]> |