Project

Profile

Help

Download (5.57 KB) Statistics
| Branch: | Tag: | Revision:

he / latest10 / hej / net / sf / saxon / data / w3c / rddl / xhtml-basic-form-1.mod @ 02f8308b

1 02f8308b O'Neil Delpratt
<!-- ...................................................................... -->
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-2000 W3C (MIT, INRIA, Keio), All Rights Reserved.
7
     Revision: $Id: xhtml-basic-form-1.mod,v 1.1 2001/02/13 12:24:22 ht 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/TR/xhtml-modulatization/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
      enctype      %ContentType.datatype;   'application/x-www-form-urlencoded'
69
>
70
<!-- end of form.attlist -->]]>
71
72
<!-- label: Form Field Label Text ...................... -->
73
74
<!ENTITY % label.element  "INCLUDE" >
75
<![%label.element;[
76
<!-- Each label must not contain more than ONE field
77
-->
78
<!ENTITY % label.content
79
     "( #PCDATA 
80
      | %input.qname; | %select.qname; | %textarea.qname;
81
      | %InlStruct.class;
82
      %InlPhras.class;
83
      %I18n.class;
84
      %InlPres.class;
85
      %InlSpecial.class;
86
      %Misc.class; )*"
87
>
88
<!ELEMENT %label.qname;  %label.content; >
89
<!-- end of label.element -->]]>
90
91
<!ENTITY % label.attlist  "INCLUDE" >
92
<![%label.attlist;[
93
<!ATTLIST %label.qname;
94
      %Common.attrib;
95
      for          IDREF                    #IMPLIED
96
      accesskey    %Character.datatype;     #IMPLIED
97
>
98
<!-- end of label.attlist -->]]>
99
100
<!-- input: Form Control ............................... -->
101
102
<!ENTITY % input.element  "INCLUDE" >
103
<![%input.element;[
104
<!ENTITY % input.content  "EMPTY" >
105
<!ELEMENT %input.qname;  %input.content; >
106
<!-- end of input.element -->]]>
107
108
<!-- Basic Forms removes 'image' and 'file' input types.
109
-->
110
<!ENTITY % input.attlist  "INCLUDE" >
111
<![%input.attlist;[
112
<!ENTITY % InputType.class
113
     "( text | password | checkbox | radio 
114
      | submit | reset | hidden )"
115
>
116
<!-- attribute name required for all but submit & reset
117
-->
118
<!ATTLIST %input.qname;
119
      %Common.attrib;
120
      type         %InputType.class;        'text'
121
      name         CDATA                    #IMPLIED
122
      value        CDATA                    #IMPLIED
123
      checked      ( checked )              #IMPLIED
124
      size         CDATA                    #IMPLIED
125
      maxlength    %Number.datatype;        #IMPLIED
126
      src          %URI.datatype;           #IMPLIED
127
      accesskey    %Character.datatype;     #IMPLIED
128
>
129
<!-- end of input.attlist -->]]>
130
131
<!-- select: Option Selector ........................... -->
132
133
<!ENTITY % select.element  "INCLUDE" >
134
<![%select.element;[
135
<!ENTITY % select.content  "( %option.qname; )+" >
136
<!ELEMENT %select.qname;  %select.content; >
137
<!-- end of select.element -->]]>
138
139
<!ENTITY % select.attlist  "INCLUDE" >
140
<![%select.attlist;[
141
<!ATTLIST %select.qname;
142
      %Common.attrib;
143
      name         CDATA                    #IMPLIED
144
      size         %Number.datatype;        #IMPLIED
145
      multiple     ( multiple )             #IMPLIED
146
>
147
<!-- end of select.attlist -->]]>
148
149
<!-- option: Selectable Choice ......................... -->
150
151
<!ENTITY % option.element  "INCLUDE" >
152
<![%option.element;[
153
<!ENTITY % option.content  "( #PCDATA )" >
154
<!ELEMENT %option.qname;  %option.content; >
155
<!-- end of option.element -->]]>
156
157
<!ENTITY % option.attlist  "INCLUDE" >
158
<![%option.attlist;[
159
<!ATTLIST %option.qname;
160
      %Common.attrib;
161
      selected     ( selected )             #IMPLIED
162
      value        CDATA                    #IMPLIED
163
>
164
<!-- end of option.attlist -->]]>
165
166
<!-- textarea: Multi-Line Text Field ................... -->
167
168
<!ENTITY % textarea.element  "INCLUDE" >
169
<![%textarea.element;[
170
<!ENTITY % textarea.content  "( #PCDATA )" >
171
<!ELEMENT %textarea.qname;  %textarea.content; >
172
<!-- end of textarea.element -->]]>
173
174
<!ENTITY % textarea.attlist  "INCLUDE" >
175
<![%textarea.attlist;[
176
<!ATTLIST %textarea.qname;
177
      %Common.attrib;
178
      name         CDATA                    #IMPLIED
179
      rows         %Number.datatype;        #REQUIRED
180
      cols         %Number.datatype;        #REQUIRED
181
      accesskey    %Character.datatype;     #IMPLIED
182
>
183
<!-- end of textarea.attlist -->]]>
184
185
<!-- end of xhtml-basic-form-1.mod -->