~ubuntu-branches/ubuntu/trusty/w3c-sgml-lib/trusty

« back to all changes in this revision

Viewing changes to htdocs/sgml-lib/REC-xhtml-modularization-20081008/xhtml-basic-form-1.mod

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Bamber
  • Date: 2010-08-21 11:15:42 UTC
  • Revision ID: james.westby@ubuntu.com-20100821111542-cklvls9be6wh2f2z
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
      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 'button', '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         %Number.datatype;        #IMPLIED
 
125
      maxlength    %Number.datatype;        #IMPLIED
 
126
      src          %URI.datatype;           #IMPLIED
 
127
      tabindex     %Number.datatype;        #IMPLIED
 
128
      accesskey    %Character.datatype;     #IMPLIED
 
129
>
 
130
<!-- end of input.attlist -->]]>
 
131
 
 
132
<!-- select: Option Selector ........................... -->
 
133
 
 
134
<!ENTITY % select.element  "INCLUDE" >
 
135
<![%select.element;[
 
136
<!ENTITY % select.content  "( %option.qname; )+" >
 
137
<!ELEMENT %select.qname;  %select.content; >
 
138
<!-- end of select.element -->]]>
 
139
 
 
140
<!ENTITY % select.attlist  "INCLUDE" >
 
141
<![%select.attlist;[
 
142
<!ATTLIST %select.qname;
 
143
      %Common.attrib;
 
144
      name         CDATA                    #IMPLIED
 
145
      size         %Number.datatype;        #IMPLIED
 
146
      multiple     ( multiple )             #IMPLIED
 
147
      tabindex     %Number.datatype;        #IMPLIED
 
148
>
 
149
<!-- end of select.attlist -->]]>
 
150
 
 
151
<!-- option: Selectable Choice ......................... -->
 
152
 
 
153
<!ENTITY % option.element  "INCLUDE" >
 
154
<![%option.element;[
 
155
<!ENTITY % option.content  "( #PCDATA )" >
 
156
<!ELEMENT %option.qname;  %option.content; >
 
157
<!-- end of option.element -->]]>
 
158
 
 
159
<!ENTITY % option.attlist  "INCLUDE" >
 
160
<![%option.attlist;[
 
161
<!ATTLIST %option.qname;
 
162
      %Common.attrib;
 
163
      selected     ( selected )             #IMPLIED
 
164
      value        CDATA                    #IMPLIED
 
165
>
 
166
<!-- end of option.attlist -->]]>
 
167
 
 
168
<!-- textarea: Multi-Line Text Field ................... -->
 
169
 
 
170
<!ENTITY % textarea.element  "INCLUDE" >
 
171
<![%textarea.element;[
 
172
<!ENTITY % textarea.content  "( #PCDATA )" >
 
173
<!ELEMENT %textarea.qname;  %textarea.content; >
 
174
<!-- end of textarea.element -->]]>
 
175
 
 
176
<!ENTITY % textarea.attlist  "INCLUDE" >
 
177
<![%textarea.attlist;[
 
178
<!ATTLIST %textarea.qname;
 
179
      %Common.attrib;
 
180
      name         CDATA                    #IMPLIED
 
181
      rows         %Number.datatype;        #REQUIRED
 
182
      cols         %Number.datatype;        #REQUIRED
 
183
      tabindex     %Number.datatype;        #IMPLIED
 
184
      accesskey    %Character.datatype;     #IMPLIED
 
185
>
 
186
<!-- end of textarea.attlist -->]]>
 
187
 
 
188
<!-- end of xhtml-basic-form-1.mod -->