/[suikacvs]/test/html.dtd
Suika

Contents of /test/html.dtd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Fri Jun 3 22:09:14 1994 UTC (30 years, 6 months ago) by connolly
Branch: MAIN
Changes since 1.14: +1 -3 lines
backed out some HTML.phrase stuff cuz it excercises a bug
in one of my tools.

1 connolly 1.7 <!-- html.dtd
2    
3 connolly 1.6 Document Type Definition for the HyperText Markup Language
4 connolly 1.13 as used by the World Wide Web (HTML DTD).
5 connolly 1.5
6 connolly 1.15 $Id: html.dtd,v 1.14 1994/06/03 20:02:52 connolly Exp $
7 connolly 1.11
8 connolly 1.13 Author: Daniel W. Connolly <connolly@hal.com>
9     See Also: http://www.hal.com/%7Econnolly/html-spec/HTML.html
10 connolly 1.14 http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html
11 connolly 1.2 -->
12    
13 connolly 1.13 <!ENTITY HTML.Version
14 connolly 1.14 "-//W3O//DTD WWW HTML 2.0//EN"
15 connolly 1.13 -- public identifier for "current pracitice" version --
16    
17     -- Typical usage:
18    
19 connolly 1.14 <!DOCTYPE HTML PUBLIC "-//W3O//DTD WWW HTML 2.0//EN">
20 connolly 1.13 <html>
21     ...
22     </html>
23     --
24     >
25    
26    
27 connolly 1.8 <!-- Feature Test Entities -->
28    
29     <!-- To use these, write your document like:
30     <!DOCTYPE HTML [
31     <!ENTITY % HTML.Optional "INCLUDE">
32     <!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN">
33     %html;
34     ]>
35     <TITLE>Here's my doc</TITLE>
36     <p>It uses lots of optional features
37    
38     In practice, if you're using sgmls to validate your docs,
39     you can stick the <!DOCTYPE [...]> in a separate file and
40     validate with:
41     sgmls -s doctype.sgml foo.html
42     -->
43    
44 connolly 1.14 <!ENTITY % HTML.Level0 "IGNORE">
45 connolly 1.8 <!ENTITY % HTML.Obsolete "IGNORE">
46 connolly 1.11 <!ENTITY % HTML.Prescriptive "IGNORE">
47 connolly 1.8
48 connolly 1.14 <![ %HTML.Level0 [
49 connolly 1.8 <!ENTITY % HTML.linkRelationships "IGNORE">
50     <!ENTITY % HTML.linkMethods "IGNORE">
51     <!ENTITY % HTML.linkRedundantInfo "IGNORE">
52     <!ENTITY % HTML.forms "IGNORE">
53 connolly 1.14 <!ENTITY % HTML.phrase "IGNORE">
54     <!ENTITY % HTML.NEXTID "IGNORE">
55     <!-- @# Are the following required for conformance? -->
56     <!-- @# nested lists -->
57     <!-- @# IMG -->
58     <!-- @# headers inside A -->
59     <!-- @# nested phrases, fonts -->
60 connolly 1.8 ]]>
61    
62     <![ %HTML.Obsolete [
63     <!ENTITY % HTML.titleCDATA "INCLUDE">
64     <!ENTITY % HTML.litCDATA "INCLUDE">
65     <!ENTITY % HTML.pSeparator "INCLUDE">
66     ]]>
67    
68 connolly 1.11 <![ %HTML.Prescriptive [
69 connolly 1.12 <!--
70     This feature test entity prescribes that certain
71     idioms detract from the structural integrity of an
72     HTML document, and are therefore disallowed.
73     -->
74 connolly 1.11 <!ENTITY % HTML.font-phrase "IGNORE">
75     <!ENTITY % HTML.anchorNameCDATA "IGNORE">
76     <!ENTITY % HTML.PLAINTEXT "IGNORE">
77 connolly 1.12 <!ENTITY % HTML.bodyBlockOnly "INCLUDE">
78 connolly 1.11 ]]>
79    
80 connolly 1.14 <!ENTITY % HTML.phrase "INCLUDE"
81     -- phrase markup, ala TeXinfo: TT, EM, etc.
82     -->
83    
84 connolly 1.12 <!ENTITY % HTML.bodyBlockOnly "IGNORE"
85     -- only allow block elements in the BODY element
86     This means all paragraphs need to start with a <P> tag.
87     -->
88 connolly 1.9
89 connolly 1.8 <!ENTITY % HTML.pSeparator "IGNORE"
90     -- use P element as paragraph separator, rather that container.
91     -->
92    
93     <!ENTITY % HTML.linkRelationships "INCLUDE"
94     -- Adding markup to links to show the relationship between
95     ends of a link
96     see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html
97     -->
98    
99     <!ENTITY % HTML.linkMethods "INCLUDE"
100     -- Adding markup to links to show the methods supported
101     by the referent object
102     see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html
103     -->
104    
105     <!ENTITY % HTML.linkRedundantInfo "INCLUDE"
106     -- Adding markup to links to give redundant information
107     like URN, content type, title...
108     -->
109    
110 connolly 1.11 <!ENTITY % HTML.anchorNameCDATA "INCLUDE"
111 connolly 1.8 -- Anchor names should be distinct. SGML parser can validate
112     this if the NAME attribute of the A element is declared as ID.
113     But that restricts the syntax of an anchor name to an SGML name,
114     i.e. a letter followed by letters, numbers, periods and dashes,
115     up to NAMELEN (34) characters long.
116     -->
117    
118 connolly 1.11 <!ENTITY % HTML.PLAINTEXT "INCLUDE"
119 connolly 1.8 -- Support for the <PLAINTEXT> tag as a sign of the
120     end of th HTML data stream and the beginning of a stream
121     of text/plain data
122     -->
123    
124     <!ENTITY % HTML.titleCDATA "IGNORE"
125     -- Is the TITLE element #PCDATA, RCDATA, or CDATA content?
126     On Mosaic, it's #PCDATA, but in the linemode browser,
127     it's more like CDATA, but not quite.
128     -->
129    
130 connolly 1.9 <!ENTITY % HTML.NEXTID "INCLUDE"
131 connolly 1.8 -- Used by the NeXT implementation to keep track of the
132     next anchor id to use
133     -->
134    
135 connolly 1.11 <!ENTITY % HTML.font-phrase "INCLUDE"
136 connolly 1.8 -- allow B, I, TT, U outside PRE,
137     CITE, VAR, etc. inside PRE
138     -->
139    
140 connolly 1.12 <!ENTITY % HTML.KEY "IGNORE"
141     -- There was once a KEY element, for keyboard keys, menu items,
142     buttons, etc. but it's not supported or widely documented
143     -->
144    
145     <!ENTITY % HTML.U "IGNORE"
146     -- There was also a U element, but since it clashes with
147     the common pracitce of underlining hypertext links, it is
148     not widely supported
149     -->
150    
151 connolly 1.8 <!ENTITY % HTML.litCDATA "IGNORE"
152     -- treat XMP, LISTING as CDATA, as per linemodeWWW
153     -->
154    
155     <!ENTITY % HTML.forms "INCLUDE"
156     -- Support for forms as per
157     http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html
158     -->
159    
160 connolly 1.3 <!-- DTD definitions -->
161    
162 connolly 1.2 <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
163 connolly 1.6 <!ENTITY % list " UL | OL | DIR | MENU ">
164     <!ENTITY % literal " XMP | LISTING ">
165 connolly 1.2
166 connolly 1.8 <!ENTITY % URI "CDATA"
167     -- The term URI means a CDATA attribute
168     whose value is a Uniform Resource Identifier,
169     as defined by
170     "Universal Resource Identifiers" by Tim Berners-Lee
171     aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html
172    
173     Note that CDATA attributes are limited by the LITLEN
174     capacity (1024 in the current version of html.decl),
175     so that URIs in HTML have a bounded length.
176 connolly 1.12
177 connolly 1.8 -->
178    
179     <!ENTITY % Content-Type "CDATA"
180 connolly 1.12 -- meaning a MIME content type, as per RFC1521
181 connolly 1.8 -->
182 connolly 1.2
183 connolly 1.8 <![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]>
184     <!ENTITY % anchor-name "ID">
185 connolly 1.6
186 connolly 1.8 <![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs "
187 connolly 1.6 REL CDATA #IMPLIED -- forward relationship type --
188     REV CDATA #IMPLIED -- reversed relationship type
189     to referent data:
190    
191     PARENT CHILD, SIBLING, NEXT, TOP,
192     DEFINITION, UPDATE, ORIGINAL etc. --
193 connolly 1.8 "> ]]>
194     <!ENTITY % linkRelAttrs "">
195 connolly 1.6
196 connolly 1.8 <![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs "
197 connolly 1.6 URN CDATA #IMPLIED -- universal resource number --
198    
199     TITLE CDATA #IMPLIED -- advisory only --
200 connolly 1.8 "> ]]>
201     <!ENTITY % linkRedundantAttrs "">
202 connolly 1.5
203 connolly 1.8 <![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs "
204 connolly 1.6 METHODS NAMES #IMPLIED -- supported public methods of the object:
205     TEXTSEARCH, GET, HEAD, ... --
206 connolly 1.8 "> ]]>
207     <!ENTITY % linkMethodAttrs "">
208 connolly 1.3
209 connolly 1.8 <!ENTITY % linkattributes
210     "NAME %anchor-name #IMPLIED
211     HREF %URI; #IMPLIED
212     %linkRelAttrs;
213     %linkRedundantAttrs;
214     %linkMethodAttrs;
215 connolly 1.6 ">
216    
217    
218 connolly 1.4 <!-- Document Element -->
219 connolly 1.2
220    
221 connolly 1.9 <![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]>
222     <!ENTITY % obsolete-plaintext "">
223    
224 connolly 1.12 <!ENTITY % html-content "HEAD, BODY %obsolete-plaintext;">
225 connolly 1.8 <!ELEMENT HTML O O (%html-content)>
226    
227     <![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE?
228     & NEXTID?"> ]]>
229     <!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?">
230     <!ELEMENT HEAD O O (%head-content)>
231    
232     <![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]>
233     <!ENTITY % title-content "(#PCDATA)">
234     <!ELEMENT TITLE - - %title-content
235 connolly 1.6 -- The TITLE element is not considered part of the flow of text.
236     It should be displayed, for example as the page header or
237     window title.
238     -->
239 connolly 1.2
240     <!ELEMENT ISINDEX - O EMPTY
241 connolly 1.6 -- WWW clients should offer the option to perform a search on
242     documents containing ISINDEX.
243     -->
244    
245 connolly 1.2 <!ELEMENT NEXTID - O EMPTY>
246 connolly 1.8 <!ATTLIST NEXTID N %anchor-name #REQUIRED
247 connolly 1.6 -- The number should be a name suitable for use
248     for the ID of a new element. When used, the value
249     has its numeric part incremented. EG Z67 becomes Z68
250     -->
251     <!ELEMENT LINK - O EMPTY>
252     <!ATTLIST LINK
253     %linkattributes>
254    
255 connolly 1.8 <!ELEMENT BASE - O EMPTY -- Reference context for URIs -->
256 connolly 1.6 <!ATTLIST BASE
257    
258 connolly 1.12 HREF %URI; #REQUIRED
259 connolly 1.6
260     >
261 connolly 1.8
262 connolly 1.12 <![ %HTML.KEY [
263     <!ENTITY % key-emph "| KEY">
264     ]]>
265     <!ENTITY % key-emph "">
266    
267     <![ %HTML.U [
268     <!ENTITY % u-font "| U">
269     ]]>
270     <!ENTITY % u-font "">
271    
272     <!ENTITY % font "TT | B | I %u-font">
273     <!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | DFN | CITE
274     | STRIKE %key-emph">
275 connolly 1.8
276 connolly 1.12
277 connolly 1.8 <![ %HTML.font-phrase [
278     <!ENTITY % obsolete-font "| %font">
279     <!ENTITY % obsolete-phrase "| %phrase">
280     ]]>
281     <!ENTITY % obsolete-font "">
282     <!ENTITY % obsolete-phrase "">
283     <![ %HTML.pSeparator [
284     <!ENTITY % obsolete-p "| P">
285     ]]>
286     <!ENTITY % obsolete-p "">
287 connolly 1.3
288 connolly 1.8 <!ENTITY % inline "%phrase %obsolete-font">
289     <!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p">
290 connolly 1.14
291     <!ENTITY % inline "">
292     <!ENTITY % pre-inline "">
293 connolly 1.3
294 connolly 1.12 <!ENTITY % text "#PCDATA | IMG | %inline | BR %obsolete-p">
295 connolly 1.6
296     <!ENTITY % htext "A | %text" -- Plus links, no structure -->
297 connolly 1.4
298 connolly 1.8 <![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]>
299     <!ENTITY % font-content "#PCDATA">
300     <!ELEMENT (%font;) - - (%font-content;)>
301    
302 connolly 1.14 <![ %HTML.phrase [
303 connolly 1.8 <!ELEMENT (%phrase;) - - (%htext)+>
304 connolly 1.14 ]]>
305 connolly 1.5
306 connolly 1.8 <!ENTITY % pre "PRE | XMP | LISTING">
307 connolly 1.6
308 connolly 1.9 <![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]>
309 connolly 1.8 <!ENTITY % block-form "">
310 connolly 1.6
311 connolly 1.8 <![ %HTML.pSeparator [
312     <!ENTITY % obsolete-htext "| %htext">
313     <!ENTITY % block-p "">
314     ]]>
315     <!ENTITY % obsolete-htext "| A">
316     <!ENTITY % block-p "| P ">
317 connolly 1.4
318 connolly 1.8 <!ENTITY % block "HR | %list | DL
319     | %pre | BLOCKQUOTE | ADDRESS
320     %block-form %block-p">
321    
322    
323 connolly 1.12 <![ %HTML.bodyBlockOnly [
324     <!ENTITY % current-htext "">
325     ]]>
326     <!ENTITY % current-htext "| %htext">
327    
328     <!ENTITY % body-content "%heading | %block %current-htext">
329 connolly 1.8 <!ELEMENT BODY O O (%body-content)*>
330    
331    
332 connolly 1.12 <!ELEMENT A - - (%heading|%block|%text)+ -(A)
333 connolly 1.8 -- @# Technically, this allows silliness like:
334     <H2><A>xyz<H1>h1</H1></A></H2>
335     The right way to do anchors outside of %htext is more like:
336     <as id=z1><H2>lkjlkj</h2><ae start=z1>
337     -->
338 connolly 1.4 <!ATTLIST A
339 connolly 1.6 %linkattributes;
340     >
341    
342     <!ELEMENT IMG - O EMPTY -- Embedded image -->
343     <!ATTLIST IMG
344 connolly 1.8 SRC %URI; #IMPLIED -- URI of document to embed --
345     ALT CDATA #IMPLIED
346     ALIGN (top|middle|bottom) #IMPLIED
347     ISMAP (ISMAP) #IMPLIED
348 connolly 1.6 >
349    
350    
351 connolly 1.8 <![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]>
352     <!ENTITY % p-content "(%htext)+">
353     <!ELEMENT P - O %p-content>
354 connolly 1.6 <!ELEMENT HR - O EMPTY -- horizontal rule -->
355 connolly 1.8 <!ELEMENT BR - O EMPTY -- @# BR -> &br; -->
356 connolly 1.6
357     <!ELEMENT ( %heading ) - - (%htext;)+>
358    
359 connolly 1.8 <!ELEMENT DL - - (DT*, DD?)+>
360     <!ATTLIST DL
361 connolly 1.11 COMPACT (COMPACT) #IMPLIED>
362 connolly 1.8
363     <!ELEMENT DT - O (%htext)+>
364     <!ELEMENT DD - O (%htext|%block)+>
365    
366     <!ELEMENT (%list) - - (LI)+>
367 connolly 1.2
368 connolly 1.8 <!ELEMENT LI - O (%htext|%block)+>
369 connolly 1.2
370 connolly 1.9 <!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... --
371 connolly 1.6 -- for quoting some other source -->
372 connolly 1.3
373 connolly 1.11 <!ELEMENT ADDRESS - - (%htext;|%block)+>
374 connolly 1.2
375 connolly 1.8 <!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+>
376 connolly 1.2 <!ATTLIST PRE
377 connolly 1.6 WIDTH NUMBER #implied
378 connolly 1.2 >
379    
380 connolly 1.6 <!-- Mnemonic character entities. -->
381 connolly 1.8
382     <!ENTITY % ISOlat1 PUBLIC
383     "ISO 8879:1986//ENTITIES Added Latin 1//EN">
384     %ISOlat1;
385    
386 connolly 1.11 <!ENTITY #DEFAULT SDATA "&#38;unkown;" --display the markup-->
387 connolly 1.12 <!ENTITY amp CDATA "&#38;" -- ampersand -->
388     <!ENTITY gt CDATA "&#62;" -- greater than -->
389     <!ENTITY lt CDATA "&#60;" -- less than -->
390     <!ENTITY quot CDATA "&#34;" -- double quote -->
391    
392     <!-- Processing Entities -->
393    
394 connolly 1.8 <!ENTITY nbsp "<? nonbreaking-space>">
395     <!-- @# should add entites for processing instructions
396     for line break, centering, etc. -->
397 connolly 1.6
398 connolly 1.3
399 connolly 1.8 <!-- Forms -->
400     <![ %HTML.forms [
401    
402     <!ENTITY % HTTP-Method "(GET | POST)">
403 connolly 1.9 <!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)>
404 connolly 1.8 <!ATTLIST FORM
405     ACTION %URI #REQUIRED
406     METHOD %HTTP-Method #IMPLIED -- @# MAILTO? --
407     ENCTYPE %Content-Type; #IMPLIED
408     >
409    
410     <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
411     RADIO | SUBMIT | RESET |
412     IMAGE | HIDDEN )">
413     <!ELEMENT INPUT - O EMPTY>
414     <!ATTLIST INPUT
415     TYPE %InputType #IMPLIED -- @# defaults to TEXT?? --
416     NAME CDATA #IMPLIED -- required for all but submit and reset --
417     VALUE CDATA #IMPLIED
418     SRC %URI #IMPLIED -- for image inputs --
419 connolly 1.11 CHECKED (CHECKED) #IMPLIED
420 connolly 1.8 SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma --
421     MAXLENGTH NUMBER #IMPLIED
422     ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?--
423     >
424    
425     <!ELEMENT SELECT - - (OPTION+)>
426     <!ATTLIST SELECT
427     NAME CDATA #REQUIRED
428     SIZE NUMBER #IMPLIED
429 connolly 1.11 MULTIPLE (MULTIPLE) #IMPLIED
430 connolly 1.8 >
431    
432     <!ELEMENT OPTION - O (#PCDATA)>
433     <!ATTLIST OPTION
434 connolly 1.11 SELECTED (SELECTED) #IMPLIED
435 connolly 1.8 VALUE CDATA #IMPLIED
436     >
437    
438     <!ELEMENT TEXTAREA - - (#PCDATA)>
439     <!ATTLIST TEXTAREA
440     NAME CDATA #REQUIRED
441     ROWS NUMBER #REQUIRED -- @#implied? --
442     COLS NUMBER #REQUIRED
443     >
444     ]]>
445 connolly 1.2
446 connolly 1.12 <!-- Obsolete Elements -->
447    
448     <![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]>
449     <!ENTITY % lit-content "RCDATA">
450     <!ELEMENT (%literal) - - %lit-content>
451    
452     <![ %HTML.PLAINTEXT [
453     <!ELEMENT PLAINTEXT - O EMPTY>
454     ]]>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24