xref: /aosp_15_r20/external/apache-xml/test/tests/conf/output/xhtml1-transitional.dtd (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1<!--
2   Extensible HTML version 1.0 Transitional DTD
3
4   This is the same as HTML 4.0 Transitional except for
5   changes due to the differences between XML and SGML.
6
7   Namespace = http://www.w3.org/1999/xhtml
8
9   For further information, see: http://www.w3.org/TR/xhtml1
10
11   Copyright (c) 1998-2000 W3C (MIT, INRIA, Keio),
12   All Rights Reserved.
13
14   This DTD module is identified by the PUBLIC and SYSTEM identifiers:
15
16   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
17   SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
18
19   $Revision$
20   $Date$
21
22-->
23
24<!--================ Character mnemonic entities =========================-->
25
26<!ENTITY % HTMLlat1 PUBLIC
27   "-//W3C//ENTITIES Latin 1 for XHTML//EN"
28   "xhtml-lat1.ent">
29%HTMLlat1;
30
31<!ENTITY % HTMLsymbol PUBLIC
32   "-//W3C//ENTITIES Symbols for XHTML//EN"
33   "xhtml-symbol.ent">
34%HTMLsymbol;
35
36<!ENTITY % HTMLspecial PUBLIC
37   "-//W3C//ENTITIES Special for XHTML//EN"
38   "xhtml-special.ent">
39%HTMLspecial;
40
41<!--================== Imported Names ====================================-->
42
43<!ENTITY % ContentType "CDATA">
44    <!-- media type, as per [RFC2045] -->
45
46<!ENTITY % ContentTypes "CDATA">
47    <!-- comma-separated list of media types, as per [RFC2045] -->
48
49<!ENTITY % Charset "CDATA">
50    <!-- a character encoding, as per [RFC2045] -->
51
52<!ENTITY % Charsets "CDATA">
53    <!-- a space separated list of character encodings, as per [RFC2045] -->
54
55<!ENTITY % LanguageCode "NMTOKEN">
56    <!-- a language code, as per [RFC1766] -->
57
58<!ENTITY % Character "CDATA">
59    <!-- a single character from [ISO10646] -->
60
61<!ENTITY % Number "CDATA">
62    <!-- one or more digits -->
63
64<!ENTITY % LinkTypes "CDATA">
65    <!-- space-separated list of link types -->
66
67<!ENTITY % MediaDesc "CDATA">
68    <!-- single or comma-separated list of media descriptors -->
69
70<!ENTITY % URI "CDATA">
71    <!-- a Uniform Resource Identifier, see [RFC2396] -->
72
73<!ENTITY % UriList "CDATA">
74    <!-- a space separated list of Uniform Resource Identifiers -->
75
76<!ENTITY % Datetime "CDATA">
77    <!-- date and time information. ISO date format -->
78
79<!ENTITY % Script "CDATA">
80    <!-- script expression -->
81
82<!ENTITY % StyleSheet "CDATA">
83    <!-- style sheet data -->
84
85<!ENTITY % Text "CDATA">
86    <!-- used for titles etc. -->
87
88<!ENTITY % FrameTarget "NMTOKEN">
89    <!-- render in this frame -->
90
91<!ENTITY % Length "CDATA">
92    <!-- nn for pixels or nn% for percentage length -->
93
94<!ENTITY % MultiLength "CDATA">
95    <!-- pixel, percentage, or relative -->
96
97<!ENTITY % MultiLengths "CDATA">
98    <!-- comma-separated list of MultiLength -->
99
100<!ENTITY % Pixels "CDATA">
101    <!-- integer representing length in pixels -->
102
103<!-- these are used for image maps -->
104
105<!ENTITY % Shape "(rect|circle|poly|default)">
106
107<!ENTITY % Coords "CDATA">
108    <!-- comma separated list of lengths -->
109
110<!-- used for object, applet, img, input and iframe -->
111<!ENTITY % ImgAlign "(top|middle|bottom|left|right)">
112
113<!-- a color using sRGB: #RRGGBB as Hex values -->
114<!ENTITY % Color "CDATA">
115
116<!-- There are also 16 widely known color names with their sRGB values:
117
118    Black  = #000000    Green  = #008000
119    Silver = #C0C0C0    Lime   = #00FF00
120    Gray   = #808080    Olive  = #808000
121    White  = #FFFFFF    Yellow = #FFFF00
122    Maroon = #800000    Navy   = #000080
123    Red    = #FF0000    Blue   = #0000FF
124    Purple = #800080    Teal   = #008080
125    Fuchsia= #FF00FF    Aqua   = #00FFFF
126-->
127
128<!--=================== Generic Attributes ===============================-->
129
130<!-- core attributes common to most elements
131  id       document-wide unique id
132  class    space separated list of classes
133  style    associated style info
134  title    advisory title/amplification
135-->
136<!ENTITY % coreattrs
137 "id          ID             #IMPLIED
138  class       CDATA          #IMPLIED
139  style       %StyleSheet;   #IMPLIED
140  title       %Text;         #IMPLIED"
141  >
142
143<!-- internationalization attributes
144  lang        language code (backwards compatible)
145  xml:lang    language code (as per XML 1.0 spec)
146  dir         direction for weak/neutral text
147-->
148<!ENTITY % i18n
149 "lang        %LanguageCode; #IMPLIED
150  xml:lang    %LanguageCode; #IMPLIED
151  dir         (ltr|rtl)      #IMPLIED"
152  >
153
154<!-- attributes for common UI events
155  onclick     a pointer button was clicked
156  ondblclick  a pointer button was double clicked
157  onmousedown a pointer button was pressed down
158  onmouseup   a pointer button was released
159  onmousemove a pointer was moved onto the element
160  onmouseout  a pointer was moved away from the element
161  onkeypress  a key was pressed and released
162  onkeydown   a key was pressed down
163  onkeyup     a key was released
164-->
165<!ENTITY % events
166 "onclick     %Script;       #IMPLIED
167  ondblclick  %Script;       #IMPLIED
168  onmousedown %Script;       #IMPLIED
169  onmouseup   %Script;       #IMPLIED
170  onmouseover %Script;       #IMPLIED
171  onmousemove %Script;       #IMPLIED
172  onmouseout  %Script;       #IMPLIED
173  onkeypress  %Script;       #IMPLIED
174  onkeydown   %Script;       #IMPLIED
175  onkeyup     %Script;       #IMPLIED"
176  >
177
178<!-- attributes for elements that can get the focus
179  accesskey   accessibility key character
180  tabindex    position in tabbing order
181  onfocus     the element got the focus
182  onblur      the element lost the focus
183-->
184<!ENTITY % focus
185 "accesskey   %Character;    #IMPLIED
186  tabindex    %Number;       #IMPLIED
187  onfocus     %Script;       #IMPLIED
188  onblur      %Script;       #IMPLIED"
189  >
190
191<!ENTITY % attrs "%coreattrs; %i18n; %events;">
192
193<!-- text alignment for p, div, h1-h6. The default is
194     align="left" for ltr headings, "right" for rtl -->
195
196<!ENTITY % TextAlign "align (left|center|right) #IMPLIED">
197
198<!--=================== Text Elements ====================================-->
199
200<!ENTITY % special
201   "br | span | bdo | object | applet | img | map | iframe">
202
203<!ENTITY % fontstyle "tt | i | b | big | small | u
204                      | s | strike |font | basefont">
205
206<!ENTITY % phrase "em | strong | dfn | code | q | sub | sup |
207                   samp | kbd | var | cite | abbr | acronym">
208
209<!ENTITY % inline.forms "input | select | textarea | label | button">
210
211<!-- these can occur at block or inline level -->
212<!ENTITY % misc "ins | del | script | noscript">
213
214<!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;">
215
216<!-- %Inline; covers inline or "text-level" elements -->
217<!ENTITY % Inline "(#PCDATA | %inline; | %misc;)*">
218
219<!--================== Block level elements ==============================-->
220
221<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
222<!ENTITY % lists "ul | ol | dl | menu | dir">
223<!ENTITY % blocktext "pre | hr | blockquote | address | center | noframes">
224
225<!ENTITY % block
226    "p | %heading; | div | %lists; | %blocktext; | isindex |fieldset | table">
227
228<!ENTITY % Block "(%block; | form | %misc;)*">
229
230<!-- %Flow; mixes Block and Inline and is used for list items etc. -->
231<!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">
232
233<!--================== Content models for exclusions =====================-->
234
235<!-- a elements use %Inline; excluding a -->
236
237<!ENTITY % a.content
238   "(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc;)*">
239
240<!-- pre uses %Inline excluding img, object, applet, big, small,
241     sub, sup, font, or basefont -->
242
243<!ENTITY % pre.content
244   "(#PCDATA | a | br | span | bdo | map | tt | i | b | u | s |
245      %phrase; | %inline.forms;)*">
246
247<!-- form uses %Flow; excluding form -->
248
249<!ENTITY % form.content "(#PCDATA | %block; | %inline; | %misc;)*">
250
251<!-- button uses %Flow; but excludes a, form, form controls, iframe -->
252
253<!ENTITY % button.content
254   "(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
255      table | br | span | bdo | object | applet | img | map |
256      %fontstyle; | %phrase; | %misc;)*">
257
258<!--================ Document Structure ==================================-->
259
260<!-- the namespace URI designates the document profile -->
261
262<!ELEMENT html (head, body)>
263<!ATTLIST html
264  %i18n;
265  xmlns       %URI;          #FIXED 'http://www.w3.org/1999/xhtml'
266  >
267
268<!--================ Document Head =======================================-->
269
270<!ENTITY % head.misc "(script|style|meta|link|object|isindex)*">
271
272<!-- content model is %head.misc; combined with a single
273     title and an optional base element in any order -->
274
275<!ELEMENT head (%head.misc;,
276     ((title, %head.misc;, (base, %head.misc;)?) |
277      (base, %head.misc;, (title, %head.misc;))))>
278
279<!ATTLIST head
280  %i18n;
281  profile     %URI;          #IMPLIED
282  >
283
284<!-- The title element is not considered part of the flow of text.
285       It should be displayed, for example as the page header or
286       window title. Exactly one title is required per document.
287    -->
288<!ELEMENT title (#PCDATA)>
289<!ATTLIST title %i18n;>
290
291<!-- document base URI -->
292
293<!ELEMENT base EMPTY>
294<!ATTLIST base
295  href        %URI;          #IMPLIED
296  target      %FrameTarget;  #IMPLIED
297  >
298
299<!-- generic metainformation -->
300<!ELEMENT meta EMPTY>
301<!ATTLIST meta
302  %i18n;
303  http-equiv  CDATA          #IMPLIED
304  name        CDATA          #IMPLIED
305  content     CDATA          #REQUIRED
306  scheme      CDATA          #IMPLIED
307  >
308
309<!--
310  Relationship values can be used in principle:
311
312   a) for document specific toolbars/menus when used
313      with the link element in d