1 |
<!-- html.dtd |
<!-- html.dtd |
2 |
|
|
3 |
Document Type Definition for the HyperText Markup Language |
Document Type Definition for the HyperText Markup Language |
4 |
as used by the World Wide Web application (HTML DTD). |
(HTML DTD) |
5 |
|
|
6 |
$Id$ |
$Id$ |
7 |
|
|
8 |
|
Author: Daniel W. Connolly <connolly@hal.com> |
9 |
|
See Also: html.decl, html-0.dtd, html-1.dtd |
10 |
|
http://www.hal.com/%7Econnolly/html-spec/index.html |
11 |
|
http://info.cern.ch/hypertext/WWW/MarkUp2/MarkUp.html |
12 |
--> |
--> |
13 |
|
|
14 |
<!-- Feature Test Entities --> |
<!ENTITY % HTML.Version |
15 |
|
"-//IETF//DTD HTML 2.0//EN" |
16 |
|
|
17 |
<!-- To use these, write your document like: |
-- Typical usage: |
|
<!DOCTYPE HTML [ |
|
|
<!ENTITY % HTML.Optional "INCLUDE"> |
|
|
<!ENTITY % html PUBLIC "-//connolly hal.com//DTD WWW HTML 1.8//EN"> |
|
|
%html; |
|
|
]> |
|
|
<TITLE>Here's my doc</TITLE> |
|
|
<p>It uses lots of optional features |
|
|
|
|
|
In practice, if you're using sgmls to validate your docs, |
|
|
you can stick the <!DOCTYPE [...]> in a separate file and |
|
|
validate with: |
|
|
sgmls -s doctype.sgml foo.html |
|
|
--> |
|
|
|
|
|
<!ENTITY % HTML.Minimal "IGNORE"> |
|
|
<!ENTITY % HTML.Obsolete "IGNORE"> |
|
|
<!ENTITY % HTML.Prescriptive "IGNORE"> |
|
|
|
|
|
<![ %HTML.Minimal [ |
|
|
<!ENTITY % HTML.linkRelationships "IGNORE"> |
|
|
<!ENTITY % HTML.linkMethods "IGNORE"> |
|
|
<!ENTITY % HTML.linkRedundantInfo "IGNORE"> |
|
|
<!ENTITY % HTML.forms "IGNORE"> |
|
|
<!-- @@ nested lists --> |
|
|
<!-- @@ phrases --> |
|
|
<!-- @@ headers inside A --> |
|
|
<!-- @@ nested phrases, fonts --> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Obsolete [ |
|
|
<!ENTITY % HTML.titleCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.litCDATA "INCLUDE"> |
|
|
<!ENTITY % HTML.pSeparator "INCLUDE"> |
|
|
]]> |
|
|
|
|
|
<![ %HTML.Prescriptive [ |
|
|
<!ENTITY % HTML.font-phrase "IGNORE"> |
|
|
<!ENTITY % HTML.anchorNameCDATA "IGNORE"> |
|
|
<!ENTITY % HTML.PLAINTEXT "IGNORE"> |
|
|
<!ENTITY HTML.Version |
|
|
"-//connolly hal.com//DTD WWW HTML |
|
|
$Date 1994/04/19 17:24:06 $ Prescriptive//EN"> |
|
|
]]> |
|
|
|
|
|
<!ENTITY HTML.Version |
|
|
"-//connolly hal.com//DTD WWW HTML $Date 1994/04/19 17:24:06 $//EN" |
|
|
-- public identifier for "default" version -- |
|
|
-- actually, take the $'s out to get the real public identifer, -- |
|
|
-- since $ is illegal in public identifier. When DTD stabilizes, -- |
|
|
-- we'll need to stop using RCS keywords to version the pub id -- |
|
|
> |
|
|
|
|
|
<!ENTITY % HTML.GO "IGNORE" |
|
|
-- The GO element used in ORA GNN. What is this??? --> |
|
|
|
|
|
<!ENTITY % HTML.aEndOmissable "IGNORE" |
|
|
-- infer </A> tags, as in ORA GNN stuff --> |
|
18 |
|
|
19 |
<!ENTITY % HTML.isindexAtEnd "IGNORE" |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
20 |
-- allow ISINDEX after HEAD and BODY, as in ORA GNN stuff --> |
<html> |
21 |
|
... |
22 |
<!ENTITY % HTML.pSeparator "IGNORE" |
</html> |
23 |
-- use P element as paragraph separator, rather that container. |
-- |
24 |
This means not all paragraphs need to start with a <P> tag. |
> |
|
--> |
|
25 |
|
|
|
<!ENTITY % HTML.linkRelationships "INCLUDE" |
|
|
-- Adding markup to links to show the relationship between |
|
|
ends of a link |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Relationships.html |
|
|
--> |
|
26 |
|
|
27 |
<!ENTITY % HTML.linkMethods "INCLUDE" |
<!--============ Feature Test Entities ========================--> |
|
-- Adding markup to links to show the methods supported |
|
|
by the referent object |
|
|
see http://info.cern.ch/hypertext/WWW/MarkUp/Elements/A.html |
|
|
--> |
|
28 |
|
|
29 |
<!ENTITY % HTML.linkRedundantInfo "INCLUDE" |
<!ENTITY % HTML.Recommended "IGNORE" |
30 |
-- Adding markup to links to give redundant information |
-- Certain features of the language are necessary for |
31 |
like URN, content type, title... |
compatibility with widespread usage, but they may |
32 |
|
compromise the structural integrity of a document. |
33 |
|
This feature test entity enables a more prescriptive |
34 |
|
document type definition that eliminates |
35 |
|
those features. |
36 |
--> |
--> |
37 |
|
|
38 |
<!ENTITY % HTML.anchorNameCDATA "INCLUDE" |
<![ %HTML.Recommended [ |
39 |
-- Anchor names should be distinct. SGML parser can validate |
<!ENTITY % HTML.Deprecated "IGNORE"> |
40 |
this if the NAME attribute of the A element is declared as ID. |
]]> |
|
But that restricts the syntax of an anchor name to an SGML name, |
|
|
i.e. a letter followed by letters, numbers, periods and dashes, |
|
|
up to NAMELEN (34) characters long. |
|
|
--> |
|
41 |
|
|
42 |
<!ENTITY % HTML.PLAINTEXT "INCLUDE" |
<!ENTITY % HTML.Deprecated "INCLUDE" |
43 |
-- Support for the <PLAINTEXT> tag as a sign of the |
-- Certain features of the language are necessary for |
44 |
end of th HTML data stream and the beginning of a stream |
compatibility with earlier versions of the specification, |
45 |
of text/plain data |
but they tend to be used an implemented inconsistently, |
46 |
|
and their use is deprecated. This feature test entity |
47 |
|
enables a document type definition that eliminates |
48 |
|
these features. |
49 |
--> |
--> |
50 |
|
|
51 |
<!ENTITY % HTML.titleCDATA "IGNORE" |
<!ENTITY % HTML.Highlighting "INCLUDE" |
52 |
-- Is the TITLE element #PCDATA, RCDATA, or CDATA content? |
-- Use this feature test entity to validate that a |
53 |
On Mosaic, it's #PCDATA, but in the linemode browser, |
document uses no highlighting tags, which may be |
54 |
it's more like CDATA, but not quite. |
ignored on minimal implementations. |
55 |
--> |
--> |
56 |
|
|
57 |
<!ENTITY % HTML.NEXTID "INCLUDE" |
<!ENTITY % HTML.Forms "INCLUDE" |
58 |
-- Used by the NeXT implementation to keep track of the |
-- Use this feature test entity to validate that a document |
59 |
next anchor id to use |
contains no forms, which may not be supported in minimal |
60 |
|
implementations |
61 |
--> |
--> |
62 |
|
|
63 |
<!ENTITY % HTML.font-phrase "INCLUDE" |
<!--============== Imported Names ==============================--> |
|
-- allow B, I, TT, U outside PRE, |
|
|
CITE, VAR, etc. inside PRE |
|
|
--> |
|
64 |
|
|
65 |
<!ENTITY % HTML.litCDATA "IGNORE" |
<!ENTITY % Content-Type "CDATA" |
66 |
-- treat XMP, LISTING as CDATA, as per linemodeWWW |
-- meaning an internet media type |
67 |
|
(aka MIME content type, as per RFC1521) |
68 |
--> |
--> |
69 |
|
|
70 |
<!ENTITY % HTML.forms "INCLUDE" |
<!ENTITY % HTTP-Method "GET | POST" |
71 |
-- Support for forms as per |
-- as per HTTP specification, in progress |
|
http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html |
|
72 |
--> |
--> |
73 |
|
|
|
<!-- DTD definitions --> |
|
|
|
|
|
<!ENTITY % heading "H1|H2|H3|H4|H5|H6" > |
|
|
<!ENTITY % list " UL | OL | DIR | MENU "> |
|
|
<!ENTITY % literal " XMP | LISTING "> |
|
|
|
|
74 |
<!ENTITY % URI "CDATA" |
<!ENTITY % URI "CDATA" |
75 |
-- The term URI means a CDATA attribute |
-- The term URI means a CDATA attribute |
76 |
whose value is a Uniform Resource Identifier, |
whose value is a Uniform Resource Identifier, |
77 |
as defined by |
as defined by |
78 |
"Universal Resource Identifiers" by Tim Berners-Lee |
"Universal Resource Identifiers" by Tim Berners-Lee |
79 |
aka http://info.cern.ch/hypertext/WWW/Addressing/URL/URI_Overview.html |
aka RFC 1630 |
80 |
|
|
81 |
Note that CDATA attributes are limited by the LITLEN |
Note that CDATA attributes are limited by the LITLEN |
82 |
capacity (1024 in the current version of html.decl), |
capacity (1024 in the current version of html.decl), |
83 |
so that URIs in HTML have a bounded length. |
so that URIs in HTML have a bounded length. |
84 |
|
|
85 |
--> |
--> |
86 |
|
|
|
<!ENTITY % Content-Type "CDATA" |
|
|
-- meaning a MIME content type, as per RFC1341 or any of its updates. |
|
|
--> |
|
87 |
|
|
88 |
<![ %HTML.anchorNameCDATA [ <!ENTITY % anchor-name "CDATA"> ]]> |
<!--========= DTD "Macros" =====================--> |
|
<!ENTITY % anchor-name "ID"> |
|
89 |
|
|
90 |
<![ %HTML.linkRelationships [ <!ENTITY % linkRelAttrs " |
<!ENTITY % heading "H1|H2|H3|H4|H5|H6"> |
|
REL CDATA #IMPLIED -- forward relationship type -- |
|
|
REV CDATA #IMPLIED -- reversed relationship type |
|
|
to referent data: |
|
|
|
|
|
PARENT CHILD, SIBLING, NEXT, TOP, |
|
|
DEFINITION, UPDATE, ORIGINAL etc. -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRelAttrs ""> |
|
|
|
|
|
<![ %HTML.linkRedundantInfo [ <!ENTITY % linkRedundantAttrs " |
|
|
URN CDATA #IMPLIED -- universal resource number -- |
|
|
|
|
|
TITLE CDATA #IMPLIED -- advisory only -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkRedundantAttrs ""> |
|
|
|
|
|
<![ %HTML.linkMethods [ <!ENTITY % linkMethodAttrs " |
|
|
METHODS NAMES #IMPLIED -- supported public methods of the object: |
|
|
TEXTSEARCH, GET, HEAD, ... -- |
|
|
"> ]]> |
|
|
<!ENTITY % linkMethodAttrs ""> |
|
|
|
|
|
<!ENTITY % linkattributes |
|
|
"NAME %anchor-name #IMPLIED |
|
|
HREF %URI; #IMPLIED |
|
|
%linkRelAttrs; |
|
|
%linkRedundantAttrs; |
|
|
%linkMethodAttrs; |
|
|
"> |
|
91 |
|
|
92 |
|
<!ENTITY % list " UL | OL | DIR | MENU " > |
93 |
|
|
|
<!-- Document Element --> |
|
94 |
|
|
95 |
|
<!--======= Character mnemonic entities =================--> |
96 |
|
|
97 |
<![ %HTML.PLAINTEXT [ <!ENTITY % obsolete-plaintext ", PLAINTEXT?"> ]]> |
<!ENTITY % ISOlat1 PUBLIC |
98 |
<!ENTITY % obsolete-plaintext ""> |
"ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML"> |
99 |
<![ %HTML.isindexAtEnd [ <!ENTITY % end-isindex ", ISINDEX?"> ]]> |
%ISOlat1; |
|
<!ENTITY % end-isindex ""> |
|
|
|
|
|
<!ENTITY % html-content "HEAD, BODY %obsolete-plaintext; %end-isindex"> |
|
|
<!ELEMENT HTML O O (%html-content)> |
|
|
|
|
|
<![ %HTML.NEXTID [ <!ENTITY % head-content "TITLE? & ISINDEX? & LINK* & BASE? |
|
|
& NEXTID?"> ]]> |
|
|
<!ENTITY % head-content "TITLE & ISINDEX? & LINK* & BASE?"> |
|
|
<!ELEMENT HEAD O O (%head-content)> |
|
|
|
|
|
<![ %HTML.titleCDATA [ <!ENTITY % title-content "CDATA"> ]]> |
|
|
<!ENTITY % title-content "(#PCDATA)"> |
|
|
<!ELEMENT TITLE - - %title-content |
|
|
-- The TITLE element is not considered part of the flow of text. |
|
|
It should be displayed, for example as the page header or |
|
|
window title. |
|
|
--> |
|
|
|
|
|
<!ELEMENT ISINDEX - O EMPTY |
|
|
-- WWW clients should offer the option to perform a search on |
|
|
documents containing ISINDEX. |
|
|
--> |
|
100 |
|
|
101 |
<!ELEMENT NEXTID - O EMPTY> |
<!ENTITY amp CDATA "&" -- ampersand --> |
102 |
<!ATTLIST NEXTID N %anchor-name #REQUIRED |
<!ENTITY gt CDATA ">" -- greater than --> |
103 |
-- The number should be a name suitable for use |
<!ENTITY lt CDATA "<" -- less than --> |
104 |
for the ID of a new element. When used, the value |
<!ENTITY quot CDATA """ -- double quote --> |
105 |
has its numeric part incremented. EG Z67 becomes Z68 |
|
106 |
--> |
|
107 |
<!ELEMENT LINK - O EMPTY> |
<!--========= SGML Document Access (SDA) Parameter Entities =====--> |
108 |
<!ATTLIST LINK |
|
109 |
%linkattributes> |
<!-- HTML 2.0 contains SGML Document Access (SDA) fixed attributes |
110 |
|
in support of easy transformation to the International Committee |
111 |
<!ELEMENT BASE - O EMPTY -- Reference context for URIs --> |
for Accessible Document Design (ICADD) DTD |
112 |
<!ATTLIST BASE |
"-//EC-USA-CDA/ICADD//DTD ICADD22//EN". |
113 |
|
ICADD applications are designed to support usable access to |
114 |
|
structured information by print-impaired individuals through |
115 |
|
Braille, large print and voice synthesis. For more information on |
116 |
|
SDA & ICADD: |
117 |
|
- ISO 12083:1993, Annex A.8, Facilities for Braille, |
118 |
|
large print and computer voice |
119 |
|
- ICADD ListServ |
120 |
|
<ICADD%ASUACAD.BITNET@ARIZVM1.ccit.arizona.edu> |
121 |
|
- Usenet news group bit.listserv.easi |
122 |
|
- Recording for the Blind, +1 800 221 4792 |
123 |
|
--> |
124 |
|
|
125 |
HREF %URI; #IMPLIED |
<!ENTITY % SDAFORM "SDAFORM CDATA #FIXED" |
126 |
|
-- one to one mapping --> |
127 |
|
<!ENTITY % SDARULE "SDARULE CDATA #FIXED" |
128 |
|
-- context-sensitive mapping --> |
129 |
|
<!ENTITY % SDAPREF "SDAPREF CDATA #FIXED" |
130 |
|
-- generated text prefix --> |
131 |
|
<!ENTITY % SDASUFF "SDASUFF CDATA #FIXED" |
132 |
|
-- generated text suffix --> |
133 |
|
<!ENTITY % SDASUSP "SDASUSP NAME #FIXED" |
134 |
|
-- suspend transform process --> |
135 |
|
|
|
> |
|
136 |
|
|
137 |
<!ENTITY % font "TT | B | I | U "> |
<!--========== Text Markup =====================--> |
|
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | KEY | VAR | DFN | CITE"> |
|
138 |
|
|
139 |
<![ %HTML.font-phrase [ |
<![ %HTML.Highlighting [ |
|
<!ENTITY % obsolete-font "| %font"> |
|
|
<!ENTITY % obsolete-phrase "| %phrase"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-font ""> |
|
|
<!ENTITY % obsolete-phrase ""> |
|
|
<![ %HTML.pSeparator [ |
|
|
<!ENTITY % obsolete-p "| P"> |
|
|
]]> |
|
|
<!ENTITY % obsolete-p ""> |
|
140 |
|
|
141 |
<!ENTITY % inline "%phrase %obsolete-font"> |
<!ENTITY % font " TT | B | I "> |
|
<!ENTITY % pre-inline "%font %obsolete-phrase %obsolete-p"> |
|
142 |
|
|
143 |
<![ %HTML.GO [ |
<!ENTITY % phrase "EM | STRONG | CODE | SAMP | KBD | VAR | CITE "> |
|
<!ELEMENT GO - O EMPTY> |
|
|
<!ENTITY % go-text "| GO"> |
|
|
]]> |
|
|
<!ENTITY % go-text ""> |
|
144 |
|
|
145 |
<!ENTITY % text "#PCDATA | IMG | %inline | BR %go-text %obsolete-p"> |
<!ENTITY % text "#PCDATA | A | IMG | BR | %phrase | %font"> |
146 |
|
|
147 |
<!ENTITY % htext "A | %text" -- Plus links, no structure --> |
<!ELEMENT (%font;|%phrase) - - (%text)*> |
148 |
|
<!ATTLIST ( TT | CODE | SAMP | KBD | VAR ) |
149 |
|
%SDAFORM; "Lit" |
150 |
|
> |
151 |
|
<!ATTLIST ( B | STRONG ) |
152 |
|
%SDAFORM; "B" |
153 |
|
> |
154 |
|
<!ATTLIST ( I | EM | CITE ) |
155 |
|
%SDAFORM; "It" |
156 |
|
> |
157 |
|
|
158 |
|
<!-- <TT> Typewriter text --> |
159 |
|
<!-- <B> Bold text --> |
160 |
|
<!-- <I> Italic text --> |
161 |
|
|
162 |
|
<!-- <EM> Emphasized phrase --> |
163 |
|
<!-- <STRONG> Strong emphais --> |
164 |
|
<!-- <CODE> Source code phrase --> |
165 |
|
<!-- <SAMP> Sample text or characters --> |
166 |
|
<!-- <KBD> Keyboard phrase, e.g. user input --> |
167 |
|
<!-- <VAR> Variable phrase or substituable --> |
168 |
|
<!-- <CITE> Name or title of cited work --> |
169 |
|
|
170 |
|
<!ENTITY % pre.content "#PCDATA | A | HR | BR | %font | %phrase"> |
171 |
|
|
172 |
<![ %HTML.font-phrase [ <!ENTITY % font-content "(%htext)+"> ]]> |
]]> |
|
<!ENTITY % font-content "#PCDATA"> |
|
|
<!ELEMENT (%font;) - - (%font-content;)> |
|
173 |
|
|
174 |
<!ELEMENT (%phrase;) - - (%htext)+> |
<!ENTITY % text "#PCDATA | A | IMG | BR"> |
175 |
|
|
176 |
<!ENTITY % pre "PRE | XMP | LISTING"> |
<!ELEMENT BR - O EMPTY> |
177 |
|
<!ATTLIST BR |
178 |
|
%SDAPREF; "&#RE;" |
179 |
|
> |
180 |
|
|
181 |
<![ %HTML.forms [ <!ENTITY % block-form "| FORM | ISINDEX"> ]]> |
<!-- <BR> Line break --> |
|
<!ENTITY % block-form ""> |
|
182 |
|
|
|
<![ %HTML.pSeparator [ |
|
|
<!ENTITY % obsolete-htext "| %htext"> |
|
|
<!ENTITY % block-p ""> |
|
|
]]> |
|
|
<!ENTITY % obsolete-htext "| A"> |
|
|
<!ENTITY % block-p "| P "> |
|
183 |
|
|
184 |
<!ENTITY % block "HR | %list | DL |
<!--========= Link Markup ======================--> |
|
| %pre | BLOCKQUOTE | ADDRESS |
|
|
%block-form %block-p"> |
|
185 |
|
|
186 |
|
<![ %HTML.Recommended [ |
187 |
|
<!ENTITY % linkName "ID"> |
188 |
|
]]> |
189 |
|
|
190 |
<!ENTITY % body-content "%heading | %block | %htext"> |
<!ENTITY % linkName "CDATA"> |
|
<!ELEMENT BODY O O (%body-content)*> |
|
191 |
|
|
192 |
|
<!ENTITY % linkType "NAME" |
193 |
|
-- a list of these will be specified at a later date --> |
194 |
|
|
195 |
<![ %HTML.aEndOmissable [ <!ENTITY % a-end "O"> ]]> |
<!ENTITY % linkExtraAttributes |
196 |
<!ENTITY % a-end "-"> |
"REL %linkType #IMPLIED |
197 |
|
REV %linkType #IMPLIED |
198 |
|
URN CDATA #IMPLIED |
199 |
|
TITLE CDATA #IMPLIED |
200 |
|
METHODS NAMES #IMPLIED |
201 |
|
"> |
202 |
|
|
203 |
<!ELEMENT A - %a-end (%heading|%block|%text)+ -(A) |
<![ %HTML.Recommended [ |
204 |
-- @# Technically, this allows silliness like: |
<!ENTITY % A.content "(%text)*" |
205 |
<H2><A>xyz<H1>h1</H1></A></H2> |
-- <H1><a name="xxx">Heading</a></H1> |
206 |
The right way to do anchors outside of %htext is more like: |
is preferred to |
207 |
<as id=z1><H2>lkjlkj</h2><ae start=z1> |
<a name="xxx"><H1>Heading</H1></a> |
208 |
--> |
--> |
209 |
|
]]> |
210 |
|
|
211 |
|
<!ENTITY % A.content "(%heading|%text)*"> |
212 |
|
|
213 |
|
<!ELEMENT A - - %A.content -(A)> |
214 |
<!ATTLIST A |
<!ATTLIST A |
215 |
%linkattributes; |
HREF %URI #IMPLIED |
216 |
|
NAME %linkName #IMPLIED |
217 |
|
%linkExtraAttributes; |
218 |
|
%SDAPREF; "<?SDATrans A: #AttList>" |
219 |
> |
> |
220 |
|
<!-- <A> Anchor; source/destination of link --> |
221 |
|
<!-- <A NAME="..."> Name of this anchor --> |
222 |
|
<!-- <A HREF="..."> Address of link destination --> |
223 |
|
<!-- <A URN="..."> Permanent address of destination --> |
224 |
|
<!-- <A REL=...> Relationship to destination --> |
225 |
|
<!-- <A REV=...> Relationship of destination to this --> |
226 |
|
<!-- <A TITLE="..."> Title of destination (advisory) --> |
227 |
|
<!-- <A METHODS="..."> Operations on destination (advisory) --> |
228 |
|
|
229 |
|
|
230 |
|
<!--========== Images ==========================--> |
231 |
|
|
232 |
<!ELEMENT IMG - O EMPTY -- Embedded image --> |
<!ELEMENT IMG - O EMPTY> |
233 |
<!ATTLIST IMG |
<!ATTLIST IMG |
234 |
SRC %URI; #IMPLIED -- URI of document to embed -- |
SRC %URI; #REQUIRED |
235 |
ALT CDATA #IMPLIED |
ALT CDATA #IMPLIED |
236 |
ALIGN (top|middle|bottom) #IMPLIED |
ALIGN (top|middle|bottom) #IMPLIED |
237 |
ISMAP (ISMAP) #IMPLIED |
ISMAP (ISMAP) #IMPLIED |
238 |
|
%SDAPREF; "<Fig><?SDATrans Img: #AttList>#AttVal(Alt)</Fig>" |
239 |
> |
> |
240 |
|
|
241 |
|
<!-- <IMG> Image; icon, glyph or illustration --> |
242 |
|
<!-- <IMG SRC="..."> Address of image object --> |
243 |
|
<!-- <IMG ALT="..."> Textual alternative --> |
244 |
|
<!-- <IMG ALIGN=...> Position relative to text --> |
245 |
|
<!-- <IMG ISMAP> Each pixel can be a link --> |
246 |
|
|
247 |
|
<!--========== Paragraphs=======================--> |
248 |
|
|
249 |
|
<!ELEMENT P - O (%text)*> |
250 |
|
<!ATTLIST P |
251 |
|
%SDAFORM; "Para" |
252 |
|
> |
253 |
|
|
254 |
<![ %HTML.pSeparator [ <!ENTITY % p-content "EMPTY"> ]]> |
<!-- <P> Paragraph --> |
|
<!ENTITY % p-content "(%htext)+"> |
|
|
<!ELEMENT P - O %p-content> |
|
|
<!ELEMENT HR - O EMPTY -- horizontal rule --> |
|
|
<!ELEMENT BR - O EMPTY -- @# BR -> &br; --> |
|
255 |
|
|
|
<!ELEMENT ( %heading ) - - (%htext;)+> |
|
256 |
|
|
257 |
<!ELEMENT DL - - (DT*, DD?)+> |
<!--========== Headings, Titles, Sections ===============--> |
258 |
<!ATTLIST DL |
|
259 |
COMPACT (COMPACT) #IMPLIED> |
<!ELEMENT HR - O EMPTY> |
260 |
|
<!ATTLIST HR |
261 |
|
%SDAPREF; "<Para><?SDATrans HR: #AttList></Para>" |
262 |
|
> |
263 |
|
|
264 |
<!ELEMENT DT - O (%htext)+> |
<!-- <HR> Horizontal rule --> |
|
<!ELEMENT DD - O (%htext|%block)+> |
|
265 |
|
|
266 |
<!ELEMENT (%list) - - (LI)+> |
<!ELEMENT ( %heading ) - - (%text;)*> |
267 |
|
<!ATTLIST H1 |
268 |
|
%SDAFORM; "H1" |
269 |
|
> |
270 |
|
<!ATTLIST H2 |
271 |
|
%SDAFORM; "H2" |
272 |
|
> |
273 |
|
<!ATTLIST H3 |
274 |
|
%SDAFORM; "H3" |
275 |
|
> |
276 |
|
<!ATTLIST H4 |
277 |
|
%SDAFORM; "H4" |
278 |
|
> |
279 |
|
<!ATTLIST H5 |
280 |
|
%SDAFORM; "H5" |
281 |
|
> |
282 |
|
<!ATTLIST H6 |
283 |
|
%SDAFORM; "H6" |
284 |
|
> |
285 |
|
|
286 |
|
<!-- <H1> Heading, level 1 --> |
287 |
|
<!-- <H2> Heading, level 2 --> |
288 |
|
<!-- <H3> Heading, level 3 --> |
289 |
|
<!-- <H4> Heading, level 4 --> |
290 |
|
<!-- <H5> Heading, level 5 --> |
291 |
|
<!-- <H6> Heading, level 6 --> |
292 |
|
|
|
<!ELEMENT LI - O (%htext|%block)+> |
|
293 |
|
|
294 |
<!ELEMENT BLOCKQUOTE - - (%htext|%block)+ -- @# Hmm... -- |
<!--========== Text Flows ======================--> |
295 |
-- for quoting some other source --> |
|
296 |
|
<![ %HTML.Forms [ |
297 |
|
<!ENTITY % block.forms "BLOCKQUOTE | FORM | ISINDEX"> |
298 |
|
]]> |
299 |
|
|
300 |
<!ELEMENT ADDRESS - - (%htext;|%block)+> |
<!ENTITY % block.forms "BLOCKQUOTE"> |
301 |
|
|
302 |
<!ELEMENT PRE - - (#PCDATA|%pre-inline|A)+> |
<![ %HTML.Deprecated [ |
303 |
|
<!ENTITY % preformatted "PRE | XMP | LISTING"> |
304 |
|
]]> |
305 |
|
|
306 |
|
<!ENTITY % preformatted "PRE"> |
307 |
|
|
308 |
|
<!ENTITY % block "P | %list | DL |
309 |
|
| %preformatted |
310 |
|
| %block.forms"> |
311 |
|
|
312 |
|
<!ENTITY % flow "(%text|%block)*"> |
313 |
|
|
314 |
|
<!ENTITY % pre.content "#PCDATA | A | HR | BR"> |
315 |
|
<!ELEMENT PRE - - (%pre.content)*> |
316 |
<!ATTLIST PRE |
<!ATTLIST PRE |
317 |
WIDTH NUMBER #implied |
WIDTH NUMBER #implied |
318 |
|
%SDAFORM; "Lit" |
319 |
|
%SDAPREF; "<?SDATrans Pre: #AttList>" |
320 |
> |
> |
321 |
|
|
322 |
<!-- Mnemonic character entities. --> |
<!-- <PRE> Preformatted text --> |
323 |
|
<!-- <PRE WIDTH=...> Maximum characters per line --> |
324 |
|
|
325 |
<!ENTITY % ISOlat1 PUBLIC |
<![ %HTML.Deprecated [ |
|
"ISO 8879:1986//ENTITIES Added Latin 1//EN"> |
|
|
%ISOlat1; |
|
326 |
|
|
327 |
<!ENTITY #DEFAULT SDATA "&unkown;" --display the markup--> |
<!ENTITY % literal "CDATA" |
328 |
<!ENTITY amp "&" -- ampersand --> |
-- historical, non-conforming parsing mode where |
329 |
<!ENTITY gt ">" -- greater than --> |
the only markup signal is the end tag |
330 |
<!ENTITY lt "<" -- less than --> |
in full |
331 |
<!ENTITY quot """ -- less than --> |
--> |
|
<!ENTITY nbsp "<? nonbreaking-space>"> |
|
|
<!-- @# should add entites for processing instructions |
|
|
for line break, centering, etc. --> |
|
332 |
|
|
333 |
|
<!ELEMENT (XMP|LISTING) - - %literal> |
334 |
|
<!ATTLIST XMP |
335 |
|
%SDAFORM; "Lit" |
336 |
|
%SDAPREF; "Example:&#RE;" |
337 |
|
> |
338 |
|
<!ATTLIST LISTING |
339 |
|
%SDAFORM; "Lit" |
340 |
|
%SDAPREF; "Listing:&#RE;" |
341 |
|
> |
342 |
|
|
343 |
|
<!-- <XMP> Example section --> |
344 |
|
<!-- <LISTING> Computer listing --> |
345 |
|
|
346 |
<![ %HTML.litCDATA [ <!ENTITY % lit-content "CDATA"> ]]> |
<!ELEMENT PLAINTEXT - O %literal> |
347 |
<!ENTITY % lit-content "RCDATA"> |
<!-- <PLAINTEXT> Plain text passage --> |
|
<!ELEMENT (%literal) - - %lit-content> |
|
348 |
|
|
349 |
<![ %HTML.PLAINTEXT [ |
<!ATTLIST PLAINTEXT |
350 |
<!ELEMENT PLAINTEXT - O EMPTY> |
%SDAFORM; "Lit" |
351 |
|
> |
352 |
]]> |
]]> |
353 |
|
|
354 |
|
|
355 |
<!-- Forms --> |
<!--========== Lists ==================--> |
356 |
<![ %HTML.forms [ |
|
357 |
|
<!ELEMENT DL - - (DT | DD)+> |
358 |
|
<!ATTLIST DL |
359 |
|
COMPACT (COMPACT) #IMPLIED |
360 |
|
%SDAFORM; "List" |
361 |
|
%SDAPREF; "<?SDATrans DL: #AttList>" |
362 |
|
> |
363 |
|
|
364 |
|
<!ELEMENT DT - O (%text)*> |
365 |
|
<!ATTLIST DT |
366 |
|
%SDAFORM; "Term" |
367 |
|
> |
368 |
|
|
369 |
<!ENTITY % HTTP-Method "(GET | POST)"> |
<!ELEMENT DD - O %flow> |
370 |
<!ELEMENT FORM - - (%body-content)* -(FORM) +(INPUT|SELECT|TEXTAREA)> |
<!ATTLIST DD |
371 |
|
%SDAFORM; "LItem" |
372 |
|
> |
373 |
|
|
374 |
|
<!-- <DL> Definition list, or glossary --> |
375 |
|
<!-- <DL COMPACT> Compact style list --> |
376 |
|
<!-- <DT> Term in definition list --> |
377 |
|
<!-- <DD> Definition of term --> |
378 |
|
|
379 |
|
<!ELEMENT (OL|UL) - - (LI)+> |
380 |
|
<!ATTLIST OL |
381 |
|
COMPACT (COMPACT) #IMPLIED |
382 |
|
%SDAFORM; "List" |
383 |
|
%SDAPREF; "<?SDATrans OL: #AttList>" |
384 |
|
> |
385 |
|
<!ATTLIST UL |
386 |
|
COMPACT (COMPACT) #IMPLIED |
387 |
|
%SDAFORM; "List" |
388 |
|
%SDAPREF; "<?SDATrans UL: #AttList>" |
389 |
|
> |
390 |
|
<!-- <UL> Unordered list --> |
391 |
|
<!-- <UL COMPACT> Compact list style --> |
392 |
|
<!-- <OL> Ordered, or numbered list --> |
393 |
|
<!-- <OL COMPACT> Compact list style --> |
394 |
|
|
395 |
|
|
396 |
|
<!ELEMENT (DIR|MENU) - - (LI)+ -(%block)> |
397 |
|
<!ATTLIST DIR |
398 |
|
COMPACT (COMPACT) #IMPLIED |
399 |
|
%SDAFORM; "List" |
400 |
|
%SDAPREF; |
401 |
|
"<?SDATrans Dir: #AttList><LHead>Directory</LHead>" |
402 |
|
> |
403 |
|
<!ATTLIST MENU |
404 |
|
COMPACT (COMPACT) #IMPLIED |
405 |
|
%SDAFORM; "List" |
406 |
|
%SDAPREF; "<?SDATrans Menu: #AttList><LHead>Menu</LHead>" |
407 |
|
> |
408 |
|
|
409 |
|
<!-- <DIR> Directory list --> |
410 |
|
<!-- <DIR COMPACT> Compact list style --> |
411 |
|
<!-- <MENU> Menu list --> |
412 |
|
<!-- <MENU COMPACT> Compact list style --> |
413 |
|
|
414 |
|
<!ELEMENT LI - O %flow> |
415 |
|
<!ATTLIST LI |
416 |
|
%SDAFORM; "LItem" |
417 |
|
> |
418 |
|
|
419 |
|
<!-- <LI> List item --> |
420 |
|
|
421 |
|
<!--========== Document Body ===================--> |
422 |
|
|
423 |
|
<![ %HTML.Recommended [ |
424 |
|
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS|IMG)*" |
425 |
|
-- <h1>Heading</h1> |
426 |
|
<p>Text ... |
427 |
|
is preferred to |
428 |
|
<h1>Heading</h1> |
429 |
|
Text ... |
430 |
|
--> |
431 |
|
]]> |
432 |
|
|
433 |
|
<!ENTITY % body.content "(%heading | %text | %block | |
434 |
|
HR | ADDRESS)*"> |
435 |
|
|
436 |
|
<!ELEMENT BODY O O %body.content> |
437 |
|
<!ATTLIST BODY |
438 |
|
%SDAPREF; "<?SDATrans Body: #AttList>" |
439 |
|
> |
440 |
|
|
441 |
|
<!-- <BODY> Document body --> |
442 |
|
|
443 |
|
<!ELEMENT BLOCKQUOTE - - %body.content> |
444 |
|
<!ATTLIST BLOCKQUOTE |
445 |
|
%SDAFORM; "BQ" |
446 |
|
> |
447 |
|
|
448 |
|
<!-- <BLOCKQUOTE> Quoted passage --> |
449 |
|
|
450 |
|
<!ELEMENT ADDRESS - - (%text|P)*> |
451 |
|
<!ATTLIST ADDRESS |
452 |
|
%SDAFORM; "Lit" |
453 |
|
%SDAPREF; "Address:&#RE;" |
454 |
|
> |
455 |
|
|
456 |
|
<!-- <ADDRESS> Address, signature, or byline --> |
457 |
|
|
458 |
|
|
459 |
|
<!--======= Forms ====================--> |
460 |
|
|
461 |
|
<![ %HTML.Forms [ |
462 |
|
|
463 |
|
<!ELEMENT FORM - - %body.content -(FORM) +(INPUT|SELECT|TEXTAREA)> |
464 |
<!ATTLIST FORM |
<!ATTLIST FORM |
465 |
ACTION %URI #REQUIRED |
ACTION %URI #IMPLIED |
466 |
METHOD %HTTP-Method #IMPLIED -- @# MAILTO? -- |
METHOD (%HTTP-Method) GET |
467 |
ENCTYPE %Content-Type; #IMPLIED |
ENCTYPE %Content-Type; "application/x-www-form-urlencoded" |
468 |
|
%SDAPREF; "<Para><?SDATrans Form: #AttList>Form:</Para>" |
469 |
|
%SDASUFF; "<Para><?SDATrans Form: #End>Form End.</Para>" |
470 |
> |
> |
471 |
|
|
472 |
|
<!-- <FORM> Fill-out or data-entry form --> |
473 |
|
<!-- <FORM ACTION="..."> Address for completed form --> |
474 |
|
<!-- <FORM METHOD=...> Method of submitting form --> |
475 |
|
<!-- <FORM ENCTYPE="..."> Representation of form data --> |
476 |
|
|
477 |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
<!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX | |
478 |
RADIO | SUBMIT | RESET | |
RADIO | SUBMIT | RESET | |
479 |
IMAGE | HIDDEN )"> |
IMAGE | HIDDEN )"> |
480 |
<!ELEMENT INPUT - O EMPTY> |
<!ELEMENT INPUT - O EMPTY> |
481 |
<!ATTLIST INPUT |
<!ATTLIST INPUT |
482 |
TYPE %InputType #IMPLIED -- @# defaults to TEXT?? -- |
TYPE %InputType TEXT |
483 |
NAME CDATA #IMPLIED -- required for all but submit and reset -- |
NAME CDATA #IMPLIED |
484 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
485 |
SRC %URI #IMPLIED -- for image inputs -- |
SRC %URI #IMPLIED |
486 |
CHECKED (CHECKED) #IMPLIED |
CHECKED (CHECKED) #IMPLIED |
487 |
SIZE CDATA #IMPLIED -- @# should be NUMBERS: delimit with space, not comma -- |
SIZE CDATA #IMPLIED |
488 |
MAXLENGTH NUMBER #IMPLIED |
MAXLENGTH NUMBER #IMPLIED |
489 |
ALIGN (top|middle|bottom|left|center|right) #IMPLIED --@#supported?-- |
ALIGN (top|middle|bottom) #IMPLIED |
490 |
|
%SDAPREF; "<?SDATrans Input: #AttList>" |
491 |
> |
> |
492 |
|
|
493 |
<!ELEMENT SELECT - - (OPTION+)> |
<!-- <INPUT> Form input datum --> |
494 |
|
<!-- <INPUT TYPE=...> Type of input interaction --> |
495 |
|
<!-- <INPUT NAME=...> Name of form datum --> |
496 |
|
<!-- <INPUT VALUE="..."> Default/initial/selected value --> |
497 |
|
<!-- <INPUT SRC="..."> Address of image --> |
498 |
|
<!-- <INPUT CHECKED> Initial state is "on" --> |
499 |
|
<!-- <INPUT SIZE=...> Field size hint --> |
500 |
|
<!-- <INPUT MAXLENGTH=...> Data length maximum --> |
501 |
|
<!-- <INPUT ALIGN=...> Image alignment --> |
502 |
|
|
503 |
|
<!ELEMENT SELECT - - (OPTION+) -(INPUT|SELECT|TEXTAREA)> |
504 |
<!ATTLIST SELECT |
<!ATTLIST SELECT |
505 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
506 |
SIZE NUMBER #IMPLIED |
SIZE NUMBER #IMPLIED |
507 |
MULTIPLE (MULTIPLE) #IMPLIED |
MULTIPLE (MULTIPLE) #IMPLIED |
508 |
|
%SDAFORM; "List" |
509 |
|
%SDAPREF; |
510 |
|
"<?SDATrans Select: |
511 |
|
#AttList><LHead>Select #AttVal(Multiple)</LHead>" |
512 |
> |
> |
513 |
|
|
514 |
<!ELEMENT OPTION - O (#PCDATA)> |
<!-- <SELECT> Selection of option(s) --> |
515 |
|
<!-- <SELECT NAME=...> Name of form datum --> |
516 |
|
<!-- <SELECT SIZE=...> Options displayed at a time --> |
517 |
|
<!-- <SELECT MULTIPLE> Multiple selections allowed --> |
518 |
|
|
519 |
|
<!ELEMENT OPTION - O (#PCDATA)*> |
520 |
<!ATTLIST OPTION |
<!ATTLIST OPTION |
521 |
SELECTED (SELECTED) #IMPLIED |
SELECTED (SELECTED) #IMPLIED |
522 |
VALUE CDATA #IMPLIED |
VALUE CDATA #IMPLIED |
523 |
|
%SDAFORM; "LItem" |
524 |
|
%SDAPREF; |
525 |
|
"<?SDATrans Option: |
526 |
|
#AttList>#AttVal(Value) #AttVal(Selected)" |
527 |
> |
> |
528 |
|
|
529 |
<!ELEMENT TEXTAREA - - (#PCDATA)> |
<!-- <OPTION> A selection option --> |
530 |
|
<!-- <OPTION SELECTED> Initial state --> |
531 |
|
<!-- <OPTION VALUE="..."> Form datum value for this option--> |
532 |
|
|
533 |
|
<!ELEMENT TEXTAREA - - (#PCDATA)* -(INPUT|SELECT|TEXTAREA)> |
534 |
<!ATTLIST TEXTAREA |
<!ATTLIST TEXTAREA |
535 |
NAME CDATA #REQUIRED |
NAME CDATA #REQUIRED |
536 |
ROWS NUMBER #REQUIRED -- @#implied? -- |
ROWS NUMBER #REQUIRED |
537 |
COLS NUMBER #REQUIRED |
COLS NUMBER #REQUIRED |
538 |
|
%SDAFORM; "Para" |
539 |
|
%SDAPREF; "<?SDATrans TextArea: #AttList>#AttVal(Name): " |
540 |
> |
> |
541 |
|
|
542 |
|
<!-- <TEXTAREA> An area for text input --> |
543 |
|
<!-- <TEXTAREA NAME=...> Name of form datum --> |
544 |
|
<!-- <TEXTAREA ROWS=...> Height of area --> |
545 |
|
<!-- <TEXTAREA COLS=...> Width of area --> |
546 |
|
|
547 |
|
]]> |
548 |
|
|
549 |
|
|
550 |
|
<!--======= Document Head ======================--> |
551 |
|
|
552 |
|
<![ %HTML.Recommended [ |
553 |
|
<!ENTITY % head.extra "META* & LINK*"> |
554 |
|
]]> |
555 |
|
|
556 |
|
<!ENTITY % head.extra "NEXTID? & META* & LINK*"> |
557 |
|
|
558 |
|
<!ENTITY % head.content "TITLE & ISINDEX? & BASE? & |
559 |
|
(%head.extra)"> |
560 |
|
|
561 |
|
<!ELEMENT HEAD O O (%head.content)> |
562 |
|
<!ATTLIST HEAD |
563 |
|
%SDAPREF; "<?SDATrans Head: #AttList>" |
564 |
|
> |
565 |
|
|
566 |
|
<!-- <HEAD> Document head --> |
567 |
|
|
568 |
|
<!ELEMENT TITLE - - (#PCDATA)*> |
569 |
|
<!ATTLIST TITLE |
570 |
|
%SDAFORM; "Ti" |
571 |
|
> |
572 |
|
|
573 |
|
<!-- <TITLE> Title of document --> |
574 |
|
|
575 |
|
<!ELEMENT LINK - O EMPTY> |
576 |
|
<!ATTLIST LINK |
577 |
|
HREF %URI #REQUIRED |
578 |
|
%linkExtraAttributes; |
579 |
|
%SDAPREF; "<?SDATrans Link: #AttList>" |
580 |
|
> |
581 |
|
|
582 |
|
<!-- <LINK> Link from this document --> |
583 |
|
<!-- <LINK HREF="..."> Address of link destination --> |
584 |
|
<!-- <LINK URN="..."> Lasting name of destination --> |
585 |
|
<!-- <LINK REL=...> Relationship to destination --> |
586 |
|
<!-- <LINK REV=...> Relationship of destination to this --> |
587 |
|
<!-- <LINK TITLE="..."> Title of destination (advisory) --> |
588 |
|
<!-- <LINK METHODS="..."> Operations allowed (advisory) --> |
589 |
|
|
590 |
|
<!ELEMENT ISINDEX - O EMPTY> |
591 |
|
<!ATTLIST ISINDEX |
592 |
|
%SDAPREF; |
593 |
|
"<Para><?SDATrans |
594 |
|
IsIndex: #AttList>[Document indexed/searchable.]</Para>"> |
595 |
|
|
596 |
|
<!-- <ISINDEX> Document is a searchable index --> |
597 |
|
|
598 |
|
<!ELEMENT BASE - O EMPTY> |
599 |
|
<!ATTLIST BASE |
600 |
|
HREF %URI; #REQUIRED |
601 |
|
%SDAPREF; "<?SDATrans Base: #AttList>" |
602 |
|
> |
603 |
|
|
604 |
|
<!-- <BASE> Base context document --> |
605 |
|
<!-- <BASE HREF="..."> Address for this document --> |
606 |
|
|
607 |
|
<!ELEMENT NEXTID - O EMPTY> |
608 |
|
<!ATTLIST NEXTID |
609 |
|
N %linkName #REQUIRED |
610 |
|
%SDAPREF; "<?SDATrans NextID: #AttList>" |
611 |
|
> |
612 |
|
|
613 |
|
<!-- <NEXTID> Next ID to use for link name --> |
614 |
|
<!-- <NEXTID N=...> Next ID to use for link name --> |
615 |
|
|
616 |
|
<!ELEMENT META - O EMPTY> |
617 |
|
<!ATTLIST META |
618 |
|
HTTP-EQUIV NAME #IMPLIED |
619 |
|
NAME NAME #IMPLIED |
620 |
|
CONTENT CDATA #REQUIRED |
621 |
|
%SDAPREF; "<?SDATrans Meta: #AttList>" |
622 |
|
> |
623 |
|
|
624 |
|
<!-- <META> Generic Metainformation --> |
625 |
|
<!-- <META HTTP-EQUIV=...> HTTP response header name --> |
626 |
|
<!-- <META HTTP-EQUIV=...> Metainformation name --> |
627 |
|
<!-- <META CONTENT="..."> Associated information --> |
628 |
|
|
629 |
|
<!--======= Document Structure =================--> |
630 |
|
|
631 |
|
<![ %HTML.Deprecated [ |
632 |
|
<!ENTITY % html.content "HEAD, BODY, PLAINTEXT?"> |
633 |
]]> |
]]> |
634 |
|
<!ENTITY % html.content "HEAD, BODY"> |
635 |
|
|
636 |
|
<!ELEMENT HTML O O (%html.content)> |
637 |
|
<!ENTITY % version.attr "VERSION CDATA #FIXED '%HTML.Version;'"> |
638 |
|
|
639 |
|
<!ATTLIST HTML |
640 |
|
%version.attr; |
641 |
|
%SDAFORM; "Book" |
642 |
|
%SDAPREF; "<?SDATrans HTML: #AttList>" |
643 |
|
> |
644 |
|
|
645 |
|
<!-- <HTML> HTML Document --> |