/[pub]/test/html.dtd
Suika

Contents of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7.2.2 - (show annotations) (download)
Fri Apr 1 20:30:17 1994 UTC (30 years, 1 month ago) by connolly
Branch: connolly
Changes since 1.7.2.1: +38 -95 lines
Changed P, LI, DT, DD from EMPTY to containers.

Changed BODY, DL, etc. to have ELEMENT content.

Changed lists to allow embeded lists.

Removed NEXTID element -- should be a processing instruction.

Note: The BR feature should be represented as an entity &br;
that expands to a processing instruction <? break line>
rather than an element <br>.

The PRE style newline handling should be a different
NOTATION.

Changed content model of %inline elements to inlcude A.

Changed content model of A to ANY.

B, I, U, TT only allowed inside PRE. EM, STRONG, etc.
not allowed inside PRE.

ISOLat1 stuff moved to separate file.

removed emacs local variables.

1 <!-- html.dtd
2
3 Document Type Definition for the HyperText Markup Language
4 as used by the World Wide Web application (HTML DTD).
5
6 $Id: html.dtd,v 1.7 1994/04/01 19:21:25 connolly Exp $
7 -->
8
9
10 <!-- DTD definitions -->
11
12 <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
13 <!ENTITY % list " UL | OL | DIR | MENU ">
14 <!ENTITY % literal " XMP | LISTING ">
15
16 <!ENTITY % bodyelement
17 "P | HR | %heading |
18 %list | DL | ADDRESS | PRE | BLOCKQUOTE
19 | %literal">
20
21 <!ENTITY % URL "CDATA"
22 -- The term URL means a CDATA attribute
23 whose value is a Uniform Resource Locator,
24 as defined. (A URN may also be usable here when defined.)
25 -->
26
27 <!ENTITY % linkattributes
28 "NAME NMTOKEN #IMPLIED
29 HREF %URL; #IMPLIED
30 REL CDATA #IMPLIED -- forward relationship type --
31 REV CDATA #IMPLIED -- reversed relationship type
32 to referent data:
33
34 PARENT CHILD, SIBLING, NEXT, TOP,
35 DEFINITION, UPDATE, ORIGINAL etc. --
36
37 URN CDATA #IMPLIED -- universal resource number --
38
39 TITLE CDATA #IMPLIED -- advisory only --
40
41 METHODS NAMES #IMPLIED -- supported public methods of the object:
42 TEXTSEARCH, GET, HEAD, ... --
43
44 ">
45
46
47 <!-- Document Element -->
48
49 <!ELEMENT HTML O O (HEAD, BODY)>
50
51 <!ELEMENT HEAD O O ( TITLE? & ISINDEX? & NEXTID? & LINK*
52 & BASE?)>
53
54 <!ELEMENT TITLE - - (#PCDATA)
55 -- The TITLE element is not considered part of the flow of text.
56 It should be displayed, for example as the page header or
57 window title.
58 -->
59
60 <!ELEMENT ISINDEX - O EMPTY
61 -- WWW clients should offer the option to perform a search on
62 documents containing ISINDEX.
63 -->
64
65 <!ELEMENT LINK - O EMPTY>
66 <!ATTLIST LINK
67 %linkattributes>
68
69 <!ELEMENT BASE - O EMPTY -- Reference context for URLS -->
70 <!ATTLIST BASE
71
72 HREF %URL; #IMPLIED
73
74 >
75 <!ENTITY % inline "EM | STRONG |
76 CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
77 >
78
79 <!ELEMENT (%inline;) - - (#PCDATA | A)+>
80
81 <!ENTITY % text "#PCDATA | IMG | %inline; | BR">
82
83 <!ENTITY % htext "A | %text" -- Plus links, no structure -->
84
85 <!ENTITY % stext -- as htext but also nested structure --
86 "P | HR | %list | DL | ADDRESS
87 | PRE | BLOCKQUOTE
88 | %literal | %htext">
89
90 <!ENTITY % block -- as htext but also nested structure --
91 "P | HR | %list | DL
92 | PRE | BLOCKQUOTE
93 | %literal">
94
95
96 <!ELEMENT BODY O O (%heading | %block)+>
97
98
99 <!ELEMENT A - - ANY>
100 <!ATTLIST A
101 %linkattributes;
102 >
103
104 <!ELEMENT IMG - O EMPTY -- Embedded image -->
105 <!ATTLIST IMG
106 SRC %URL; #IMPLIED -- URL of document to embed --
107 >
108
109
110 <!ELEMENT P - O (%htext)+ -- paragraph -->
111 <!ELEMENT (HR|BR) - O EMPTY -- horizontal rule -->
112
113 <!ELEMENT ( %heading ) - - (%htext;)+>
114
115 <!ELEMENT DL - - (DT+, DD)+>
116 <!-- structured DL's
117 -->
118
119 <!ELEMENT DT - O (%htext)+>
120 <!ELEMENT DD - O (%htext|%block)+>
121
122 <!ELEMENT (%list) - - (LI)+>
123
124 <!ATTLIST (%list)
125 COMPACT NAME #IMPLIED -- COMPACT, etc.--
126 >
127
128 <!ELEMENT LI - O (%htext|%block)+>
129
130 <!ELEMENT BLOCKQUOTE - - (P+, ADDRESS?)+
131 -- for quoting some other source -->
132
133 <!ELEMENT ADDRESS - - (%htext;)+>
134
135 <!ELEMENT PRE - - (#PCDATA | TT | B | I | U | A | P | BR)+>
136 <!ATTLIST PRE
137 WIDTH NUMBER #implied
138 >
139
140 <!-- Mnemonic character entities. -->
141
142 <!ENTITY % ISOlat1 PUBLIC
143 "ISO 8879:1986//ENTITIES Added Latin 1//EN">
144 %ISOlat1;
145
146 <!ENTITY amp "&#38;" -- ampersand -->
147 <!ENTITY gt "&#62;" -- greater than -->
148 <!ENTITY lt "&#60;" -- less than -->
149 <!ENTITY nbsp "&#32;" -- @@should be NON_BREAKING space -->
150 <!-- @@ should add entites for processing instructions
151 for line break, centering, etc. -->
152
153 <!-- deprecated elements -->
154
155 <!ELEMENT (%literal) - - CDATA>
156
157 <!ELEMENT PLAINTEXT - O EMPTY>
158

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24