Debian Codegraph @

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

raw
1 <!-- ...................................................................... -->
2 <!-- XHTML Simplified Forms Module ....................................... -->
3 <!-- file: xhtml-basic-form-1.mod
4
5 This is XHTML Basic, a proper subset of XHTML.
6 Copyright 1998-2005 W3C (MIT, ERCIM, Keio), All Rights Reserved.
7 Revision: $Id: xhtml-basic-form-1.mod,v 4.1 2001/04/05 06:57:40 altheim Exp $ SMI
8
9 This DTD module is identified by the PUBLIC and SYSTEM identifiers:
10
11 PUBLIC "-//W3C//ELEMENTS XHTML Basic Forms 1.0//EN"
12 SYSTEM "http://www.w3.org/MarkUp/DTD/xhtml-basic-form-1.mod"
13
14 Revisions:
15 (none)
16 ....................................................................... -->
17
18 <!-- Basic Forms
19
20 This forms module is based on the HTML 3.2 forms model, with
21 the WAI-requested addition of the label element. While this
22 module essentially mimics the content model and attributes of
23 HTML 3.2 forms, the element types declared herein also include
24 all HTML 4 common attributes.
25
26 form, label, input, select, option, textarea
27 -->
28
29 <!-- declare qualified element type names:
30 -->
31 <!ENTITY % form.qname "form" >
32 <!ENTITY % label.qname "label" >
33 <!ENTITY % input.qname "input" >
34 <!ENTITY % select.qname "select" >
35 <!ENTITY % option.qname "option" >
36 <!ENTITY % textarea.qname "textarea" >
37
38 <!-- %BlkNoForm.mix; includes all non-form block elements,
39 plus %Misc.class;
40 -->
41 <!ENTITY % BlkNoForm.mix
42 "%Heading.class;
43 | %List.class;
44 | %BlkStruct.class;
45 %BlkPhras.class;
46 %BlkPres.class;
47 | %table.qname;
48 %Block.extra;
49 %Misc.class;"
50 >
51
52 <!-- form: Form Element ................................ -->
53
54 <!ENTITY % form.element "INCLUDE" >
55 <![%form.element;[
56 <!ENTITY % form.content
57 "( %BlkNoForm.mix; )+"
58 >
59 <!ELEMENT %form.qname; %form.content; >
60 <!-- end of form.element -->]]>
61
62 <!ENTITY % form.attlist "INCLUDE" >
63 <![%form.attlist;[
64 <!ATTLIST %form.qname;
65 %Common.attrib;
66 action %URI.datatype; #REQUIRED
67 method ( get | post ) 'get'
68 name CDATA #IMPLIED
69 enctype %ContentType.datatype; 'application/x-www-form-urlencoded'
70 >
71 <!-- end of form.attlist -->]]>
72
73 <!-- label: Form Field Label Text ...................... -->
74
75 <!ENTITY % label.element "INCLUDE" >
76 <![%label.element;[
77 <!-- Each label must not contain more than ONE field
78 -->
79 <!ENTITY % label.content
80 "( #PCDATA
81 | %input.qname; | %select.qname; | %textarea.qname;
82 | %InlStruct.class;
83 %InlPhras.class;
84 %I18n.class;
85 %InlPres.class;
86 %InlSpecial.class;
87 %Misc.class; )*"
88 >
89 <!ELEMENT %label.qname; %label.content; >
90 <!-- end of label.element -->]]>
91
92 <!ENTITY % label.attlist "INCLUDE" >
93 <![%label.attlist;[
94 <!ATTLIST %label.qname;
95 %Common.attrib;
96 for IDREF #IMPLIED
97 accesskey %Character.datatype; #IMPLIED
98 >
99 <!-- end of label.attlist -->]]>
100
101 <!-- input: Form Control ............................... -->
102
103 <!ENTITY % input.element "INCLUDE" >
104 <![%input.element;[
105 <!ENTITY % input.content "EMPTY" >
106 <!ELEMENT %input.qname; %input.content; >
107 <!-- end of input.element -->]]>
108
109 <!-- Basic Forms removes 'button', 'image' and 'file' input types.
110 -->
111 <!ENTITY % input.attlist "INCLUDE" >
112 <![%input.attlist;[
113 <!ENTITY % InputType.class
114 "( text | password | checkbox | radio
115 | submit | reset | hidden )"
116 >
117 <!-- attribute name required for all but submit & reset
118 -->
119 <!ATTLIST %input.qname;
120 %Common.attrib;
121 type %InputType.class; 'text'
122 name CDATA #IMPLIED
123 value CDATA #IMPLIED
124 checked ( checked ) #IMPLIED
125 size %Number.datatype; #IMPLIED
126 maxlength %Number.datatype; #IMPLIED
127 src %URI.datatype; #IMPLIED
128 tabindex %Number.datatype; #IMPLIED
129 accesskey %Character.datatype; #IMPLIED
130 >
131 <!-- end of input.attlist -->]]>
132
133 <!-- select: Option Selector ........................... -->
134
135 <!ENTITY % select.element "INCLUDE" >
136 <![%select.element;[
137 <!ENTITY % select.content "( %option.qname; )+" >
138 <!ELEMENT %select.qname; %select.content; >
139 <!-- end of select.element -->]]>
140
141 <!ENTITY % select.attlist "INCLUDE" >
142 <![%select.attlist;[
143 <!ATTLIST %select.qname;
144 %Common.attrib;
145 name CDATA #IMPLIED
146 size %Number.datatype; #IMPLIED
147 multiple ( multiple ) #IMPLIED
148 tabindex %Number.datatype; #IMPLIED
149 >
150 <!-- end of select.attlist -->]]>
151
152 <!-- option: Selectable Choice ......................... -->
153
154 <!ENTITY % option.element "INCLUDE" >
155 <![%option.element;[
156 <!ENTITY % option.content "( #PCDATA )" >
157 <!ELEMENT %option.qname; %option.content; >
158 <!-- end of option.element -->]]>
159
160 <!ENTITY % option.attlist "INCLUDE" >
161 <![%option.attlist;[
162 <!ATTLIST %option.qname;
163 %Common.attrib;
164 selected ( selected ) #IMPLIED
165 value CDATA #IMPLIED
166 >
167 <!-- end of option.attlist -->]]>
168
169 <!-- textarea: Multi-Line Text Field ................... -->
170
171 <!ENTITY % textarea.element "INCLUDE" >
172 <![%textarea.element;[
173 <!ENTITY % textarea.content "( #PCDATA )" >
174 <!ELEMENT %textarea.qname; %textarea.content; >
175 <!-- end of textarea.element -->]]>
176
177 <!ENTITY % textarea.attlist "INCLUDE" >
178 <![%textarea.attlist;[
179 <!ATTLIST %textarea.qname;
180 %Common.attrib;
181 name CDATA #IMPLIED
182 rows %Number.datatype; #REQUIRED
183 cols %Number.datatype; #REQUIRED
184 tabindex %Number.datatype; #IMPLIED
185 accesskey %Character.datatype; #IMPLIED
186 >
187 <!-- end of textarea.attlist -->]]>
188
189 <!-- end of xhtml-basic-form-1.mod -->