/[suikacvs]/test/html.dtd
Suika

Contents of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7.2.4 - (hide annotations) (download)
Thu Apr 7 00:33:25 1994 UTC (30 years, 7 months ago) by connolly
Branch: connolly
Changes since 1.7.2.3: +115 -57 lines
This DTD represents current practice as represented
by a random sampling of docs, mostly from NCSA.

Added forms
Changed <A NAME= attr to NMTOKEN (yuk!)
Rearranged lots of stuff.

1 connolly 1.7.2.2 <!-- html.dtd
2 connolly 1.7
3 connolly 1.7.2.2 Document Type Definition for the HyperText Markup Language
4     as used by the World Wide Web application (HTML DTD).
5    
6 connolly 1.7.2.4 $Id: html.dtd,v 1.7.2.3 1994/04/04 23:58:38 connolly Exp $
7 connolly 1.7.2.2 -->
8    
9    
10 connolly 1.3 <!-- DTD definitions -->
11    
12 connolly 1.6 <!ENTITY % URL "CDATA"
13     -- The term URL means a CDATA attribute
14     whose value is a Uniform Resource Locator,
15     as defined. (A URN may also be usable here when defined.)
16     -->
17    
18 connolly 1.7.2.4 <!ENTITY % Content-Type "CDATA" -- meaning a MIME content type -->
19    
20 connolly 1.6 <!ENTITY % linkattributes
21 connolly 1.7.2.4 "HREF %URL; #IMPLIED
22 connolly 1.6 REL CDATA #IMPLIED -- forward relationship type --
23     REV CDATA #IMPLIED -- reversed relationship type
24     to referent data:
25    
26     PARENT CHILD, SIBLING, NEXT, TOP,
27     DEFINITION, UPDATE, ORIGINAL etc. --
28    
29     URN CDATA #IMPLIED -- universal resource number --
30    
31     TITLE CDATA #IMPLIED -- advisory only --
32 connolly 1.5
33 connolly 1.6 METHODS NAMES #IMPLIED -- supported public methods of the object:
34     TEXTSEARCH, GET, HEAD, ... --
35 connolly 1.3
36 connolly 1.7.2.4 --@# content-type --
37 connolly 1.6 ">
38    
39    
40 connolly 1.4 <!-- Document Element -->
41 connolly 1.2
42 connolly 1.7.2.1 <!ELEMENT HTML O O (HEAD, BODY)>
43 connolly 1.6
44 connolly 1.7.2.4 <!-- Head -->
45    
46     <!ELEMENT HEAD O O ( TITLE? & ISINDEX? & NEXTID? & LINK*
47 connolly 1.6 & BASE?)>
48 connolly 1.2
49 connolly 1.7.2.4 <!ELEMENT NEXTID - O EMPTY -- @# obsolete -->
50     <!ATTLIST NEXTID
51     N ID #REQUIRED -- next available id -->
52    
53 connolly 1.7.2.1 <!ELEMENT TITLE - - (#PCDATA)
54 connolly 1.6 -- The TITLE element is not considered part of the flow of text.
55     It should be displayed, for example as the page header or
56     window title.
57     -->
58 connolly 1.2
59     <!ELEMENT ISINDEX - O EMPTY
60 connolly 1.6 -- WWW clients should offer the option to perform a search on
61     documents containing ISINDEX.
62     -->
63    
64     <!ELEMENT LINK - O EMPTY>
65     <!ATTLIST LINK
66 connolly 1.7.2.4 %linkattributes
67     >
68 connolly 1.6
69     <!ELEMENT BASE - O EMPTY -- Reference context for URLS -->
70     <!ATTLIST BASE
71     HREF %URL; #IMPLIED
72     >
73 connolly 1.3
74    
75 connolly 1.7.2.4 <!-- Body -->
76 connolly 1.6
77 connolly 1.7.2.4 <!ELEMENT BODY O O ANY -- empty P version @# -->
78 connolly 1.4
79 connolly 1.7.2.4 <!-- Text -->
80 connolly 1.5
81 connolly 1.7.2.4 <!ENTITY % inline "EM | STRONG |
82     CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
83     >
84     <!ENTITY % fonts "B | I | U | TT">
85 connolly 1.7.2.2
86 connolly 1.7.2.4 <!ENTITY % text "#PCDATA | IMG | %inline; | %fonts; | BR | P"
87     -- @# yuk: P in textflows --
88     --@# BR -> &br; --
89     --@# yuk: fonts -- >
90 connolly 1.6
91 connolly 1.7.2.4 <!ENTITY % htext "A | %text" -- Plus links, no structure -->
92 connolly 1.6
93 connolly 1.7.2.4 <!ELEMENT (%inline;) - - (%htext)+>
94     <!ELEMENT (%fonts;) - - (%htext)+>
95 connolly 1.4
96 connolly 1.7.2.4 <!ELEMENT A - - ANY -(A)>
97 connolly 1.4 <!ATTLIST A
98 connolly 1.7.2.4 NAME NMTOKEN #IMPLIED -- @# dangit! this should be ID! --
99     %linkattributes;
100 connolly 1.6 >
101    
102     <!ELEMENT IMG - O EMPTY -- Embedded image -->
103     <!ATTLIST IMG
104     SRC %URL; #IMPLIED -- URL of document to embed --
105 connolly 1.7.2.4 ALT CDATA #IMPLIED
106     ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
107 connolly 1.6 >
108    
109    
110 connolly 1.7.2.4 <!ELEMENT P - O EMPTY -- paragraph separator @# -->
111     <!ELEMENT HR - O EMPTY -- horizontal rule -->
112     <!ELEMENT BR - O EMPTY -- @# BR -> &br; -->
113 connolly 1.6
114 connolly 1.7.2.4 <!-- Headings -->
115    
116     <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
117 connolly 1.6 <!ELEMENT ( %heading ) - - (%htext;)+>
118    
119    
120 connolly 1.7.2.4 <!-- Pre-formatted Text -->
121 connolly 1.6
122 connolly 1.7.2.4 <!ENTITY % pre "PRE | XMP | LISTING" -- @# treat XMP like pre? -->
123 connolly 1.7.2.2
124 connolly 1.7.2.4 <!ELEMENT PRE - - (#PCDATA | %fonts | %inline | A | BR)+>
125     <!-- @# yuk: VAR, CITE etc. in PRE -->
126     <!-- @# P in PRE ??-->
127     <!-- @# BR -> &br; -->
128     <!ELEMENT (XMP|LISTING) - - RCDATA>
129     <!-- @# PLAINTEXT?? -->
130     <!ATTLIST (%pre;)
131     WIDTH NUMBER #implied
132 connolly 1.6 >
133 connolly 1.2
134 connolly 1.7.2.4 <!-- Block Elements -->
135    
136     <!ENTITY % list " UL | OL | DIR | MENU ">
137    
138     <!ENTITY % block -- as htext but also nested structure --
139     "HR | %list | DL
140     | %pre; | BLOCKQUOTE | FIG | ADDRESS
141     | FORM">
142    
143     <!ELEMENT DL - - (DT*, DD?)+>
144     <!ATTLIST DL
145     STYLE (COMPACT) #IMPLIED>
146    
147     <!ELEMENT DT - O (%htext)+>
148     <!ELEMENT DD - O (%htext|%block)+>
149    
150     <!ELEMENT (%list) - - (LI)+>
151 connolly 1.7.2.2 <!ELEMENT LI - O (%htext|%block)+>
152 connolly 1.2
153 connolly 1.7.2.4 <!ELEMENT BLOCKQUOTE - - ((%htext)+, ADDRESS?)+ -- @# Hmm... --
154 connolly 1.6 -- for quoting some other source -->
155 connolly 1.3
156 connolly 1.7.2.2 <!ELEMENT ADDRESS - - (%htext;)+>
157 connolly 1.2
158 connolly 1.7.2.4 <!ELEMENT FIG - - (%htext;)+>
159 connolly 1.2
160 connolly 1.7.2.4 <!-- Forms -->
161    
162     <!ENTITY % HTTP-Method "(GET | POST)">
163     <!ELEMENT FORM - - ANY -(FORM) +(INPUT|SELECT|TEXTAREA)>
164     <!ATTLIST FORM
165     ACTION %URL #REQUIRED
166     METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
167     ENCTYPE %Content-Type; #IMPLIED
168     >
169    
170     <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
171     RADIO | SUBMIT | RESET |
172     IMAGE | HIDDEN )">
173     <!ELEMENT INPUT - O EMPTY>
174     <!ATTLIST INPUT
175     TYPE %InputType #IMPLIED -- @# defaults to TEXT?? --
176     NAME CDATA #IMPLIED -- required for all but submit and reset --
177     VALUE CDATA #IMPLIED
178     SRC %URL #IMPLIED -- for image inputs --
179     STATE (CHECKED) #IMPLIED
180     SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
181     MAXLENGTH NUMBER #IMPLIED
182     ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
183     >
184    
185     <!ELEMENT SELECT - - (OPTION+)>
186     <!ATTLIST SELECT
187     NAME CDATA #REQUIRED
188     SIZE NUMBER #IMPLIED
189     SELECTIONS (MULTIPLE) #IMPLIED
190     >
191    
192     <!ELEMENT OPTION - O (#PCDATA)>
193     <!ATTLIST OPTION
194     STATE (SELECTED) #IMPLIED
195     VALUE CDATA #IMPLIED
196     >
197    
198     <!ELEMENT TEXTAREA - - (#PCDATA)>
199     <!ATTLIST TEXTAREA
200     NAME CDATA #REQUIRED
201     ROWS NUMBER #REQUIRED -- @#implied? --
202     COLS NUMBER #REQUIRED
203     >
204    
205 connolly 1.6 <!-- Mnemonic character entities. -->
206 connolly 1.7.2.2
207     <!ENTITY % ISOlat1 PUBLIC
208     "ISO 8879:1986//ENTITIES Added Latin 1//EN">
209     %ISOlat1;
210    
211 connolly 1.6 <!ENTITY amp "&#38;" -- ampersand -->
212     <!ENTITY gt "&#62;" -- greater than -->
213     <!ENTITY lt "&#60;" -- less than -->
214 connolly 1.7.2.4 <!ENTITY nbsp "<? nonbreaking-space>">
215     <!-- @# should add entites for processing instructions
216 connolly 1.7.2.2 for line break, centering, etc. -->
217 connolly 1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24