Debian Codegraph @

share/catalogue/www.w3.org/MarkUp/DTD/xhtml-form-1.mod

raw
1 <!-- ...................................................................... -->
2 <!-- XHTML Forms Module .................................................. -->
3 <!-- file: xhtml-form-1.mod
4
5 This is XHTML, a reformulation of HTML as a modular XML application.
6 Copyright 1998-2005 W3C (MIT, ERCIM, Keio), All Rights Reserved.
7 Revision: $Id: xhtml-form-1.mod,v 4.1 2001/04/10 09:42:30 altheim Exp $ SMI
8
9 This DTD module is identified by the PUBLIC and SYSTEM identifiers:
10
11 PUBLIC "-//W3C//ELEMENTS XHTML Forms 1.0//EN"
12 SYSTEM "http://www.w3.org/MarkUp/DTD/xhtml-form-1.mod"
13
14 Revisions:
15 (none)
16 ....................................................................... -->
17
18 <!-- Forms
19
20 form, label, input, select, optgroup, option,
21 textarea, fieldset, legend, button
22
23 This module declares markup to provide support for online
24 forms, based on the features found in HTML 4 forms.
25 -->
26
27 <!-- declare qualified element type names:
28 -->
29 <!ENTITY % form.qname "form" >
30 <!ENTITY % label.qname "label" >
31 <!ENTITY % input.qname "input" >
32 <!ENTITY % select.qname "select" >
33 <!ENTITY % optgroup.qname "optgroup" >
34 <!ENTITY % option.qname "option" >
35 <!ENTITY % textarea.qname "textarea" >
36 <!ENTITY % fieldset.qname "fieldset" >
37 <!ENTITY % legend.qname "legend" >
38 <!ENTITY % button.qname "button" >
39
40 <!-- %BlkNoForm.mix; includes all non-form block elements,
41 plus %Misc.class;
42 -->
43 <!ENTITY % BlkNoForm.mix
44 "%Heading.class;
45 | %List.class;
46 | %BlkStruct.class;
47 %BlkPhras.class;
48 %BlkPres.class;
49 %Table.class;
50 %Block.extra;
51 %Misc.class;"
52 >
53
54 <!-- form: Form Element ................................ -->
55
56 <!ENTITY % form.element "INCLUDE" >
57 <![%form.element;[
58 <!ENTITY % form.content
59 "( %BlkNoForm.mix;
60 | %fieldset.qname; )+"
61 >
62 <!ELEMENT %form.qname; %form.content; >
63 <!-- end of form.element -->]]>
64
65 <!ENTITY % form.attlist "INCLUDE" >
66 <![%form.attlist;[
67 <!ATTLIST %form.qname;
68 %Common.attrib;
69 action %URI.datatype; #REQUIRED
70 method ( get | post ) 'get'
71 name CDATA #IMPLIED
72 enctype %ContentType.datatype; 'application/x-www-form-urlencoded'
73 accept-charset %Charsets.datatype; #IMPLIED
74 accept %ContentTypes.datatype; #IMPLIED
75 >
76 <!-- end of form.attlist -->]]>
77
78 <!-- label: Form Field Label Text ...................... -->
79
80 <!-- Each label must not contain more than ONE field
81 -->
82
83 <!ENTITY % label.element "INCLUDE" >
84 <![%label.element;[
85 <!ENTITY % label.content
86 "( #PCDATA
87 | %input.qname; | %select.qname; | %textarea.qname; | %button.qname;
88 | %InlStruct.class;
89 %InlPhras.class;
90 %I18n.class;
91 %InlPres.class;
92 %Anchor.class;
93 %InlSpecial.class;
94 %Inline.extra;
95 %Misc.class; )*"
96 >
97 <!ELEMENT %label.qname; %label.content; >
98 <!-- end of label.element -->]]>
99
100 <!ENTITY % label.attlist "INCLUDE" >
101 <![%label.attlist;[
102 <!ATTLIST %label.qname;
103 %Common.attrib;
104 for IDREF #IMPLIED
105 accesskey %Character.datatype; #IMPLIED
106 >
107 <!-- end of label.attlist -->]]>
108
109 <!-- input: Form Control ............................... -->
110
111 <!ENTITY % input.element "INCLUDE" >
112 <![%input.element;[
113 <!ENTITY % input.content "EMPTY" >
114 <!ELEMENT %input.qname; %input.content; >
115 <!-- end of input.element -->]]>
116
117 <!ENTITY % input.attlist "INCLUDE" >
118 <![%input.attlist;[
119 <!ENTITY % InputType.class
120 "( text | password | checkbox | radio | submit
121 | reset | file | hidden | image | button )"
122 >
123 <!-- attribute 'name' required for all but submit & reset
124 -->
125 <!ATTLIST %input.qname;
126 %Common.attrib;
127 type %InputType.class; 'text'
128 name CDATA #IMPLIED
129 value CDATA #IMPLIED
130 checked ( checked ) #IMPLIED
131 disabled ( disabled ) #IMPLIED
132 readonly ( readonly ) #IMPLIED
133 size %Number.datatype; #IMPLIED
134 maxlength %Number.datatype; #IMPLIED
135 src %URI.datatype; #IMPLIED
136 alt %Text.datatype; #IMPLIED
137 tabindex %Number.datatype; #IMPLIED
138 accesskey %Character.datatype; #IMPLIED
139 accept %ContentTypes.datatype; #IMPLIED
140 >
141 <!-- end of input.attlist -->]]>
142
143 <!-- select: Option Selector ........................... -->
144
145 <!ENTITY % select.element "INCLUDE" >
146 <![%select.element;[
147 <!ENTITY % select.content
148 "( %optgroup.qname; | %option.qname; )+"
149 >
150 <!ELEMENT %select.qname; %select.content; >
151 <!-- end of select.element -->]]>
152
153 <!ENTITY % select.attlist "INCLUDE" >
154 <![%select.attlist;[
155 <!ATTLIST %select.qname;
156 %Common.attrib;
157 name CDATA #IMPLIED
158 size %Number.datatype; #IMPLIED
159 multiple ( multiple ) #IMPLIED
160 disabled ( disabled ) #IMPLIED
161 tabindex %Number.datatype; #IMPLIED
162 >
163 <!-- end of select.attlist -->]]>
164
165 <!-- optgroup: Option Group ............................ -->
166
167 <!ENTITY % optgroup.element "INCLUDE" >
168 <![%optgroup.element;[
169 <!ENTITY % optgroup.content "( %option.qname; )+" >
170 <!ELEMENT %optgroup.qname; %optgroup.content; >
171 <!-- end of optgroup.element -->]]>
172
173 <!ENTITY % optgroup.attlist "INCLUDE" >
174 <![%optgroup.attlist;[
175 <!ATTLIST %optgroup.qname;
176 %Common.attrib;
177 disabled ( disabled ) #IMPLIED
178 label %Text.datatype; #REQUIRED
179 >
180 <!-- end of optgroup.attlist -->]]>
181
182 <!-- option: Selectable Choice ......................... -->
183
184 <!ENTITY % option.element "INCLUDE" >
185 <![%option.element;[
186 <!ENTITY % option.content "( #PCDATA )" >
187 <!ELEMENT %option.qname; %option.content; >
188 <!-- end of option.element -->]]>
189
190 <!ENTITY % option.attlist "INCLUDE" >
191 <![%option.attlist;[
192 <!ATTLIST %option.qname;
193 %Common.attrib;
194 selected ( selected ) #IMPLIED
195 disabled ( disabled ) #IMPLIED
196 label %Text.datatype; #IMPLIED
197 value CDATA #IMPLIED
198 >
199 <!-- end of option.attlist -->]]>
200
201 <!-- textarea: Multi-Line Text Field ................... -->
202
203 <!ENTITY % textarea.element "INCLUDE" >
204 <![%textarea.element;[
205 <!ENTITY % textarea.content "( #PCDATA )" >
206 <!ELEMENT %textarea.qname; %textarea.content; >
207 <!-- end of textarea.element -->]]>
208
209 <!ENTITY % textarea.attlist "INCLUDE" >
210 <![%textarea.attlist;[
211 <!ATTLIST %textarea.qname;
212 %Common.attrib;
213 name CDATA #IMPLIED
214 rows %Number.datatype; #REQUIRED
215 cols %Number.datatype; #REQUIRED
216 disabled ( disabled ) #IMPLIED
217 readonly ( readonly ) #IMPLIED
218 tabindex %Number.datatype; #IMPLIED
219 accesskey %Character.datatype; #IMPLIED
220 >
221 <!-- end of textarea.attlist -->]]>
222
223 <!-- fieldset: Form Control Group ...................... -->
224
225 <!-- #PCDATA is to solve the mixed content problem,
226 per specification only whitespace is allowed
227 -->
228
229 <!ENTITY % fieldset.element "INCLUDE" >
230 <![%fieldset.element;[
231 <!ENTITY % fieldset.content
232 "( #PCDATA | %legend.qname; | %Flow.mix; )*"
233 >
234 <!ELEMENT %fieldset.qname; %fieldset.content; >
235 <!-- end of fieldset.element -->]]>
236
237 <!ENTITY % fieldset.attlist "INCLUDE" >
238 <![%fieldset.attlist;[
239 <!ATTLIST %fieldset.qname;
240 %Common.attrib;
241 >
242 <!-- end of fieldset.attlist -->]]>
243
244 <!-- legend: Fieldset Legend ........................... -->
245
246 <!ENTITY % legend.element "INCLUDE" >
247 <![%legend.element;[
248 <!ENTITY % legend.content
249 "( #PCDATA | %Inline.mix; )*"
250 >
251 <!ELEMENT %legend.qname; %legend.content; >
252 <!-- end of legend.element -->]]>
253
254 <!ENTITY % legend.attlist "INCLUDE" >
255 <![%legend.attlist;[
256 <!ATTLIST %legend.qname;
257 %Common.attrib;
258 accesskey %Character.datatype; #IMPLIED
259 >
260 <!-- end of legend.attlist -->]]>
261
262 <!-- button: Push Button ............................... -->
263
264 <!ENTITY % button.element "INCLUDE" >
265 <![%button.element;[
266 <!ENTITY % button.content
267 "( #PCDATA
268 | %BlkNoForm.mix;
269 | %InlStruct.class;
270 %InlPhras.class;
271 %InlPres.class;
272 %I18n.class;
273 %InlSpecial.class;
274 %Inline.extra; )*"
275 >
276 <!ELEMENT %button.qname; %button.content; >
277 <!-- end of button.element -->]]>
278
279 <!ENTITY % button.attlist "INCLUDE" >
280 <![%button.attlist;[
281 <!ATTLIST %button.qname;
282 %Common.attrib;
283 name CDATA #IMPLIED
284 value CDATA #IMPLIED
285 type ( button | submit | reset ) 'submit'
286 disabled ( disabled ) #IMPLIED
287 tabindex %Number.datatype; #IMPLIED
288 accesskey %Character.datatype; #IMPLIED
289 >
290 <!-- end of button.attlist -->]]>
291
292 <!-- end of xhtml-form-1.mod -->