camelpunch-markup_validity 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. data/.autotest +23 -0
  2. data/CHANGELOG.rdoc +22 -0
  3. data/Manifest.txt +105 -0
  4. data/README.rdoc +101 -0
  5. data/Rakefile +15 -0
  6. data/lib/markup_validity.rb +12 -0
  7. data/lib/markup_validity/MarkUp.html +1095 -0
  8. data/lib/markup_validity/SCHEMA.html +90 -0
  9. data/lib/markup_validity/assertions.rb +32 -0
  10. data/lib/markup_validity/examples.html +25 -0
  11. data/lib/markup_validity/rspec.rb +77 -0
  12. data/lib/markup_validity/templates.html +15 -0
  13. data/lib/markup_validity/validator.rb +65 -0
  14. data/lib/markup_validity/xframes-1.xsd +166 -0
  15. data/lib/markup_validity/xhtml-access-1.xsd +43 -0
  16. data/lib/markup_validity/xhtml-applet-1.xsd +66 -0
  17. data/lib/markup_validity/xhtml-attribs-1.xsd +67 -0
  18. data/lib/markup_validity/xhtml-base-1.xsd +31 -0
  19. data/lib/markup_validity/xhtml-basic-form-1.xsd +195 -0
  20. data/lib/markup_validity/xhtml-basic-table-1.xsd +169 -0
  21. data/lib/markup_validity/xhtml-basic10-model-1.xsd +385 -0
  22. data/lib/markup_validity/xhtml-basic10-module-redefines-1.xsd +61 -0
  23. data/lib/markup_validity/xhtml-basic10-modules-1.xsd +233 -0
  24. data/lib/markup_validity/xhtml-basic10.xsd +99 -0
  25. data/lib/markup_validity/xhtml-basic11-model-1.xsd +622 -0
  26. data/lib/markup_validity/xhtml-basic11-modules-1.xsd +508 -0
  27. data/lib/markup_validity/xhtml-basic11.xsd +105 -0
  28. data/lib/markup_validity/xhtml-bdo-1.xsd +72 -0
  29. data/lib/markup_validity/xhtml-blkphras-1.xsd +155 -0
  30. data/lib/markup_validity/xhtml-blkpres-1.xsd +32 -0
  31. data/lib/markup_validity/xhtml-blkstruct-1.xsd +44 -0
  32. data/lib/markup_validity/xhtml-charent-1.xsd +38 -0
  33. data/lib/markup_validity/xhtml-copyright-1.xsd +29 -0
  34. data/lib/markup_validity/xhtml-csismap-1.xsd +91 -0
  35. data/lib/markup_validity/xhtml-datatypes-1.xsd +177 -0
  36. data/lib/markup_validity/xhtml-edit-1.xsd +34 -0
  37. data/lib/markup_validity/xhtml-events-1.xsd +130 -0
  38. data/lib/markup_validity/xhtml-form-1.xsd +321 -0
  39. data/lib/markup_validity/xhtml-frames-1.xsd +113 -0
  40. data/lib/markup_validity/xhtml-framework-1.xsd +62 -0
  41. data/lib/markup_validity/xhtml-hypertext-1.xsd +47 -0
  42. data/lib/markup_validity/xhtml-iframe-1.xsd +68 -0
  43. data/lib/markup_validity/xhtml-image-1.xsd +40 -0
  44. data/lib/markup_validity/xhtml-inlphras-1.xsd +158 -0
  45. data/lib/markup_validity/xhtml-inlpres-1.xsd +34 -0
  46. data/lib/markup_validity/xhtml-inlstruct-1.xsd +45 -0
  47. data/lib/markup_validity/xhtml-inlstyle-1.xsd +22 -0
  48. data/lib/markup_validity/xhtml-inputmode-1.xsd +35 -0
  49. data/lib/markup_validity/xhtml-lat1.ent +196 -0
  50. data/lib/markup_validity/xhtml-legacy-1.xsd +97 -0
  51. data/lib/markup_validity/xhtml-link-1.xsd +45 -0
  52. data/lib/markup_validity/xhtml-list-1.xsd +94 -0
  53. data/lib/markup_validity/xhtml-meta-1.xsd +54 -0
  54. data/lib/markup_validity/xhtml-metaAttributes-1.xsd +39 -0
  55. data/lib/markup_validity/xhtml-misc-1.xsd +441 -0
  56. data/lib/markup_validity/xhtml-nameident-1.xsd +63 -0
  57. data/lib/markup_validity/xhtml-notations-1.xsd +69 -0
  58. data/lib/markup_validity/xhtml-object-1.xsd +71 -0
  59. data/lib/markup_validity/xhtml-param-1.xsd +46 -0
  60. data/lib/markup_validity/xhtml-pres-1.xsd +46 -0
  61. data/lib/markup_validity/xhtml-print-1.xsd +85 -0
  62. data/lib/markup_validity/xhtml-print-model-1.xsd +604 -0
  63. data/lib/markup_validity/xhtml-print-modules-1.xsd +422 -0
  64. data/lib/markup_validity/xhtml-rdfa-1.dtd +438 -0
  65. data/lib/markup_validity/xhtml-rdfa-1.xsd +116 -0
  66. data/lib/markup_validity/xhtml-rdfa-model-1.xsd +461 -0
  67. data/lib/markup_validity/xhtml-rdfa-modules-1.xsd +548 -0
  68. data/lib/markup_validity/xhtml-ruby-1.xsd +170 -0
  69. data/lib/markup_validity/xhtml-ruby-basic-1.xsd +84 -0
  70. data/lib/markup_validity/xhtml-script-1.xsd +65 -0
  71. data/lib/markup_validity/xhtml-special.ent +80 -0
  72. data/lib/markup_validity/xhtml-ssismap-1.xsd +38 -0
  73. data/lib/markup_validity/xhtml-struct-1.xsd +85 -0
  74. data/lib/markup_validity/xhtml-style-1.xsd +47 -0
  75. data/lib/markup_validity/xhtml-symbol.ent +237 -0
  76. data/lib/markup_validity/xhtml-table-1.xsd +267 -0
  77. data/lib/markup_validity/xhtml-target-1.xsd +49 -0
  78. data/lib/markup_validity/xhtml-text-1.xsd +62 -0
  79. data/lib/markup_validity/xhtml1-strict.dtd +978 -0
  80. data/lib/markup_validity/xhtml1-strict.xsd +2211 -0
  81. data/lib/markup_validity/xhtml1-transitional.dtd +1201 -0
  82. data/lib/markup_validity/xhtml1-transitional.xsd +2755 -0
  83. data/lib/markup_validity/xhtml11-model-1.xsd +715 -0
  84. data/lib/markup_validity/xhtml11-module-redefines-1.xsd +335 -0
  85. data/lib/markup_validity/xhtml11-modules-1.xsd +605 -0
  86. data/lib/markup_validity/xhtml11.xsd +107 -0
  87. data/lib/markup_validity/xhtml2.xsd +21 -0
  88. data/lib/markup_validity/xml-events-1.xsd +73 -0
  89. data/lib/markup_validity/xml-events-2.xsd +73 -0
  90. data/lib/markup_validity/xml-events-attribs-1.xsd +73 -0
  91. data/lib/markup_validity/xml-events-attribs-2.xsd +75 -0
  92. data/lib/markup_validity/xml-events-copyright-1.xsd +34 -0
  93. data/lib/markup_validity/xml-events-copyright-2.xsd +34 -0
  94. data/lib/markup_validity/xml-handlers-1.xsd +136 -0
  95. data/lib/markup_validity/xml-handlers-2.xsd +98 -0
  96. data/lib/markup_validity/xml-script-1.xsd +38 -0
  97. data/lib/markup_validity/xml.xsd +286 -0
  98. data/spec/matcher_spec.rb +55 -0
  99. data/test/assets/invalid_entity.xhtml +109 -0
  100. data/test/assets/invalid_entity_transitional.xhtml +109 -0
  101. data/test/assets/order.xml +24 -0
  102. data/test/assets/shipment.xsd +33 -0
  103. data/test/helper.rb +96 -0
  104. data/test/test_markup_validity.rb +105 -0
  105. metadata +198 -0
@@ -0,0 +1,321 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/">
3
+ <xs:import namespace="http://www.w3.org/1999/xhtml/datatypes/" schemaLocation="xhtml-datatypes-1.xsd"/>
4
+
5
+ <xs:annotation>
6
+ <xs:documentation>
7
+ Forms
8
+ This is the XML Schema Forms module for XHTML
9
+
10
+ * form, label, input, select, optgroup, option,
11
+ textarea, fieldset, legend, button
12
+
13
+ This module declares markup to provide support for online
14
+ forms, based on the features found in HTML 4.0 forms.
15
+
16
+
17
+ $Id: xhtml-form-1.xsd,v 1.3 2005/09/26 22:54:53 ahby Exp $
18
+ </xs:documentation>
19
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
20
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_extformsmodule"/>
21
+ </xs:annotation>
22
+ <!-- form: Form Element -->
23
+ <xs:attributeGroup name="xhtml.form.attlist">
24
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
25
+ <xs:attribute name="action" type="xh11d:URI" use="required"/>
26
+ <xs:attribute name="method" default="get">
27
+ <xs:simpleType>
28
+ <xs:restriction base="xs:NMTOKEN">
29
+ <xs:enumeration value="get"/>
30
+ <xs:enumeration value="post"/>
31
+ </xs:restriction>
32
+ </xs:simpleType>
33
+ </xs:attribute>
34
+ <xs:attribute name="enctype" type="xh11d:ContentType" default="application/x-www-form-urlencoded"/>
35
+ <xs:attribute name="accept-charset" type="xh11d:Charsets"/>
36
+ <xs:attribute name="accept" type="xh11d:ContentTypes"/>
37
+ </xs:attributeGroup>
38
+ <xs:group name="xhtml.form.content">
39
+ <xs:sequence>
40
+ <xs:choice maxOccurs="unbounded">
41
+ <xs:group ref="xhtml.BlkNoForm.mix"/>
42
+ <xs:element name="fieldset" type="xhtml.fieldset.type"/>
43
+ </xs:choice>
44
+ </xs:sequence>
45
+ </xs:group>
46
+ <xs:complexType name="xhtml.form.type">
47
+ <xs:group ref="xhtml.form.content"/>
48
+ <xs:attributeGroup ref="xhtml.form.attlist"/>
49
+ </xs:complexType>
50
+ <!--
51
+ label: Form Field Label Text
52
+ Note: Each label must not contain more than ONE field
53
+ -->
54
+ <xs:group name="xhtml.label.content">
55
+ <xs:sequence>
56
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
57
+ <xs:element name="input" type="xhtml.input.type"/>
58
+ <xs:element name="select" type="xhtml.select.type"/>
59
+ <xs:element name="textarea" type="xhtml.textarea.type"/>
60
+ <xs:element name="button" type="xhtml.button.type"/>
61
+ <xs:group ref="xhtml.InlStruct.class"/>
62
+ <xs:group ref="xhtml.InlPhras.class"/>
63
+ <xs:group ref="xhtml.I18n.class"/>
64
+ <xs:group ref="xhtml.InlPres.class"/>
65
+ <xs:group ref="xhtml.InlSpecial.class"/>
66
+ <xs:group ref="xhtml.Inline.extra"/>
67
+ <xs:group ref="xhtml.Misc.class"/>
68
+ </xs:choice>
69
+ </xs:sequence>
70
+ </xs:group>
71
+ <xs:attributeGroup name="xhtml.label.attlist">
72
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
73
+ <xs:attribute name="for" type="xs:IDREF"/>
74
+ <xs:attribute name="accesskey" type="xh11d:Character"/>
75
+ </xs:attributeGroup>
76
+ <xs:complexType name="xhtml.label.type" mixed="true">
77
+ <xs:group ref="xhtml.label.content"/>
78
+ <xs:attributeGroup ref="xhtml.label.attlist"/>
79
+ </xs:complexType>
80
+ <!-- input: Form Control -->
81
+ <xs:simpleType name="xhtml.InputType.class">
82
+ <xs:restriction base="xs:NMTOKEN">
83
+ <xs:enumeration value="text"/>
84
+ <xs:enumeration value="password"/>
85
+ <xs:enumeration value="checkbox"/>
86
+ <xs:enumeration value="radio"/>
87
+ <xs:enumeration value="submit"/>
88
+ <xs:enumeration value="reset"/>
89
+ <xs:enumeration value="hidden"/>
90
+ <xs:enumeration value="image"/>
91
+ <xs:enumeration value="button"/>
92
+ <xs:enumeration value="file"/>
93
+ </xs:restriction>
94
+ </xs:simpleType>
95
+ <!--
96
+ attribute 'name' required for all but submit & reset
97
+ -->
98
+ <xs:attributeGroup name="xhtml.input.attlist">
99
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
100
+ <xs:attribute name="type" type="xhtml.InputType.class" default="text"/>
101
+ <xs:attribute name="name" type="xh11d:CDATA"/>
102
+ <xs:attribute name="value" type="xh11d:CDATA"/>
103
+ <xs:attribute name="checked">
104
+ <xs:simpleType>
105
+ <xs:restriction base="xs:NMTOKEN">
106
+ <xs:enumeration value="checked"/>
107
+ </xs:restriction>
108
+ </xs:simpleType>
109
+ </xs:attribute>
110
+ <xs:attribute name="disabled">
111
+ <xs:simpleType>
112
+ <xs:restriction base="xs:NMTOKEN">
113
+ <xs:enumeration value="disabled"/>
114
+ </xs:restriction>
115
+ </xs:simpleType>
116
+ </xs:attribute>
117
+ <xs:attribute name="readonly">
118
+ <xs:simpleType>
119
+ <xs:restriction base="xs:NMTOKEN">
120
+ <xs:enumeration value="readonly"/>
121
+ </xs:restriction>
122
+ </xs:simpleType>
123
+ </xs:attribute>
124
+ <xs:attribute name="size" type="xh11d:Number"/>
125
+ <xs:attribute name="maxlength" type="xh11d:Number"/>
126
+ <xs:attribute name="src" type="xh11d:URI"/>
127
+ <xs:attribute name="alt" type="xh11d:Text"/>
128
+ <xs:attribute name="tabindex" type="xh11d:Number"/>
129
+ <xs:attribute name="accesskey" type="xh11d:Character"/>
130
+ <xs:attribute name="accept" type="xh11d:ContentTypes"/>
131
+ </xs:attributeGroup>
132
+ <xs:group name="xhtml.input.content">
133
+ <xs:sequence/>
134
+ </xs:group>
135
+ <xs:complexType name="xhtml.input.type">
136
+ <xs:group ref="xhtml.input.content"/>
137
+ <xs:attributeGroup ref="xhtml.input.attlist"/>
138
+ </xs:complexType>
139
+ <!-- select: Option Selector -->
140
+ <xs:attributeGroup name="xhtml.select.attlist">
141
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
142
+ <xs:attribute name="name" type="xh11d:CDATA"/>
143
+ <xs:attribute name="size" type="xh11d:Number"/>
144
+ <xs:attribute name="multiple">
145
+ <xs:simpleType>
146
+ <xs:restriction base="xs:NMTOKEN">
147
+ <xs:enumeration value="multiple"/>
148
+ </xs:restriction>
149
+ </xs:simpleType>
150
+ </xs:attribute>
151
+ <xs:attribute name="disabled">
152
+ <xs:simpleType>
153
+ <xs:restriction base="xs:NMTOKEN">
154
+ <xs:enumeration value="disabled"/>
155
+ </xs:restriction>
156
+ </xs:simpleType>
157
+ </xs:attribute>
158
+ <xs:attribute name="tabindex" type="xh11d:Number"/>
159
+ </xs:attributeGroup>
160
+ <xs:group name="xhtml.select.content">
161
+ <xs:sequence>
162
+ <xs:choice maxOccurs="unbounded">
163
+ <xs:element name="optgroup" type="xhtml.optgroup.type"/>
164
+ <xs:element name="option" type="xhtml.option.type"/>
165
+ </xs:choice>
166
+ </xs:sequence>
167
+ </xs:group>
168
+ <xs:complexType name="xhtml.select.type">
169
+ <xs:group ref="xhtml.select.content"/>
170
+ <xs:attributeGroup ref="xhtml.select.attlist"/>
171
+ </xs:complexType>
172
+ <!-- optgroup: Option Group -->
173
+ <xs:attributeGroup name="xhtml.optgroup.attlist">
174
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
175
+ <xs:attribute name="disabled">
176
+ <xs:simpleType>
177
+ <xs:restriction base="xs:NMTOKEN">
178
+ <xs:enumeration value="disabled"/>
179
+ </xs:restriction>
180
+ </xs:simpleType>
181
+ </xs:attribute>
182
+ <xs:attribute name="label" type="xh11d:Text" use="required"/>
183
+ </xs:attributeGroup>
184
+ <xs:group name="xhtml.optgroup.content">
185
+ <xs:sequence>
186
+ <xs:element name="option" type="xhtml.option.type" maxOccurs="unbounded"/>
187
+ </xs:sequence>
188
+ </xs:group>
189
+ <xs:complexType name="xhtml.optgroup.type">
190
+ <xs:group ref="xhtml.optgroup.content"/>
191
+ <xs:attributeGroup ref="xhtml.optgroup.attlist"/>
192
+ </xs:complexType>
193
+ <!-- option: Selectable Choice -->
194
+ <xs:attributeGroup name="xhtml.option.attlist">
195
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
196
+ <xs:attribute name="selected">
197
+ <xs:simpleType>
198
+ <xs:restriction base="xs:NMTOKEN">
199
+ <xs:enumeration value="selected"/>
200
+ </xs:restriction>
201
+ </xs:simpleType>
202
+ </xs:attribute>
203
+ <xs:attribute name="disabled">
204
+ <xs:simpleType>
205
+ <xs:restriction base="xs:NMTOKEN">
206
+ <xs:enumeration value="disabled"/>
207
+ </xs:restriction>
208
+ </xs:simpleType>
209
+ </xs:attribute>
210
+ <xs:attribute name="label" type="xh11d:Text"/>
211
+ <xs:attribute name="value" type="xh11d:CDATA"/>
212
+ </xs:attributeGroup>
213
+ <xs:group name="xhtml.option.content">
214
+ <xs:sequence/>
215
+ </xs:group>
216
+ <xs:complexType name="xhtml.option.type" mixed="true">
217
+ <xs:group ref="xhtml.option.content"/>
218
+ <xs:attributeGroup ref="xhtml.option.attlist"/>
219
+ </xs:complexType>
220
+ <!-- textarea: Multi-Line Text Field -->
221
+ <xs:attributeGroup name="xhtml.textarea.attlist">
222
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
223
+ <xs:attribute name="name" type="xh11d:CDATA"/>
224
+ <xs:attribute name="rows" type="xh11d:Number" use="required"/>
225
+ <xs:attribute name="cols" type="xh11d:Number" use="required"/>
226
+ <xs:attribute name="disabled">
227
+ <xs:simpleType>
228
+ <xs:restriction base="xs:NMTOKEN">
229
+ <xs:enumeration value="disabled"/>
230
+ </xs:restriction>
231
+ </xs:simpleType>
232
+ </xs:attribute>
233
+ <xs:attribute name="readonly">
234
+ <xs:simpleType>
235
+ <xs:restriction base="xs:NMTOKEN">
236
+ <xs:enumeration value="readonly"/>
237
+ </xs:restriction>
238
+ </xs:simpleType>
239
+ </xs:attribute>
240
+ <xs:attribute name="tabindex" type="xh11d:Number"/>
241
+ <xs:attribute name="accesskey" type="xh11d:Character"/>
242
+ </xs:attributeGroup>
243
+ <xs:group name="xhtml.textarea.content">
244
+ <xs:sequence/>
245
+ </xs:group>
246
+ <xs:complexType name="xhtml.textarea.type" mixed="true">
247
+ <xs:group ref="xhtml.textarea.content"/>
248
+ <xs:attributeGroup ref="xhtml.textarea.attlist"/>
249
+ </xs:complexType>
250
+ <!-- fieldset: Form Control Group -->
251
+ <xs:attributeGroup name="xhtml.fieldset.attlist">
252
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
253
+ </xs:attributeGroup>
254
+ <xs:group name="xhtml.fieldset.content">
255
+ <xs:sequence>
256
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
257
+ <xs:element name="legend" type="xhtml.legend.type"/>
258
+ <xs:group ref="xhtml.Flow.mix"/>
259
+ </xs:choice>
260
+ </xs:sequence>
261
+ </xs:group>
262
+ <xs:complexType name="xhtml.fieldset.type" mixed="true">
263
+ <xs:group ref="xhtml.fieldset.content"/>
264
+ <xs:attributeGroup ref="xhtml.fieldset.attlist"/>
265
+ </xs:complexType>
266
+ <!-- legend: Fieldset Legend -->
267
+ <xs:attributeGroup name="xhtml.legend.attlist">
268
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
269
+ <xs:attribute name="accesskey" type="xh11d:Character"/>
270
+ </xs:attributeGroup>
271
+ <xs:group name="xhtml.legend.content">
272
+ <xs:sequence>
273
+ <xs:group ref="xhtml.Inline.mix" minOccurs="0" maxOccurs="unbounded"/>
274
+ </xs:sequence>
275
+ </xs:group>
276
+ <xs:complexType name="xhtml.legend.type" mixed="true">
277
+ <xs:group ref="xhtml.legend.content"/>
278
+ <xs:attributeGroup ref="xhtml.legend.attlist"/>
279
+ </xs:complexType>
280
+ <!-- button: Push Button -->
281
+ <xs:attributeGroup name="xhtml.button.attlist">
282
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
283
+ <xs:attribute name="name" type="xh11d:CDATA"/>
284
+ <xs:attribute name="value" type="xh11d:CDATA"/>
285
+ <xs:attribute name="type" default="submit">
286
+ <xs:simpleType>
287
+ <xs:restriction base="xs:NMTOKEN">
288
+ <xs:enumeration value="button"/>
289
+ <xs:enumeration value="submit"/>
290
+ <xs:enumeration value="reset"/>
291
+ </xs:restriction>
292
+ </xs:simpleType>
293
+ </xs:attribute>
294
+ <xs:attribute name="disabled">
295
+ <xs:simpleType>
296
+ <xs:restriction base="xs:NMTOKEN">
297
+ <xs:enumeration value="disabled"/>
298
+ </xs:restriction>
299
+ </xs:simpleType>
300
+ </xs:attribute>
301
+ <xs:attribute name="tabindex" type="xh11d:Number"/>
302
+ <xs:attribute name="accesskey" type="xh11d:Character"/>
303
+ </xs:attributeGroup>
304
+ <xs:group name="xhtml.button.content">
305
+ <xs:sequence>
306
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
307
+ <xs:group ref="xhtml.BlkNoForm.mix"/>
308
+ <xs:group ref="xhtml.InlStruct.class"/>
309
+ <xs:group ref="xhtml.InlPhras.class"/>
310
+ <xs:group ref="xhtml.InlPres.class"/>
311
+ <xs:group ref="xhtml.I18n.class"/>
312
+ <xs:group ref="xhtml.InlSpecial.class"/>
313
+ <xs:group ref="xhtml.Inline.extra"/>
314
+ </xs:choice>
315
+ </xs:sequence>
316
+ </xs:group>
317
+ <xs:complexType name="xhtml.button.type" mixed="true">
318
+ <xs:group ref="xhtml.button.content"/>
319
+ <xs:attributeGroup ref="xhtml.button.attlist"/>
320
+ </xs:complexType>
321
+ </xs:schema>
@@ -0,0 +1,113 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ elementFormDefault="qualified"
5
+ xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/"
6
+ >
7
+ <xs:import namespace="http://www.w3.org/1999/xhtml/datatypes/"
8
+ schemaLocation="xhtml-datatypes-1.xsd" />
9
+ <xs:annotation>
10
+ <xs:documentation>
11
+ This is the XML Schema Frames module for XHTML
12
+ $Id: xhtml-frames-1.xsd,v 1.2 2005/09/26 22:54:53 ahby Exp $
13
+ </xs:documentation>
14
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
15
+ </xs:annotation>
16
+
17
+ <xs:annotation>
18
+ <xs:documentation>
19
+ Frames
20
+
21
+ * frameset, frame, noframes
22
+
23
+ This module declares frame-related element types and attributes.
24
+ </xs:documentation>
25
+ <xs:documentation
26
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_framesmodule"/>
27
+ </xs:annotation>
28
+
29
+ <xs:attributeGroup name="xhtml.frameset.attlist">
30
+ <xs:attributeGroup ref="xhtml.Core.attrib"/>
31
+ <xs:attribute name="rows" type="xh11d:MultiLengths"/>
32
+ <xs:attribute name="cols" type="xh11d:MultiLengths"/>
33
+ </xs:attributeGroup>
34
+
35
+ <xs:group name="xhtml.frameset.content">
36
+ <xs:sequence>
37
+ <xs:choice minOccurs="1" maxOccurs="unbounded">
38
+ <xs:element ref="frameset"/>
39
+ <xs:element ref="frame"/>
40
+ </xs:choice>
41
+ <xs:element ref="noframes" minOccurs="0" maxOccurs="1"/>
42
+ </xs:sequence>
43
+ </xs:group>
44
+
45
+ <xs:complexType name="xhtml.frameset.type" mixed="true">
46
+ <xs:group ref="xhtml.frameset.content"/>
47
+ <xs:attributeGroup ref="xhtml.frameset.attlist"/>
48
+ </xs:complexType>
49
+
50
+ <!--
51
+ reserved frame names start with "_"
52
+ otherwise starts with letter
53
+ -->
54
+ <xs:attributeGroup name="xhtml.frame.attlist">
55
+ <xs:attributeGroup ref="xhtml.Core.attrib"/>
56
+ <xs:attribute name="longdesc" type="xh11d:URI"/>
57
+ <xs:attribute name="src" type="xh11d:URI"/>
58
+ <xs:attribute name="frameborder" default="1">
59
+ <xs:simpleType>
60
+ <xs:restriction base="xs:nonNegativeInteger">
61
+ <xs:enumeration value="1"/>
62
+ <xs:enumeration value="0"/>
63
+ </xs:restriction>
64
+ </xs:simpleType>
65
+ </xs:attribute>
66
+ <xs:attribute name="marginwidth" type="xh11d:Pixels"/>
67
+ <xs:attribute name="marginheight" type="xh11d:Pixels"/>
68
+ <xs:attribute name="noresize">
69
+ <xs:simpleType>
70
+ <xs:restriction base="xs:NMTOKEN">
71
+ <xs:enumeration value="noresize"/>
72
+ </xs:restriction>
73
+ </xs:simpleType>
74
+ </xs:attribute>
75
+ <xs:attribute name="scrolling" default="auto">
76
+ <xs:simpleType>
77
+ <xs:restriction base="xs:NMTOKEN">
78
+ <xs:enumeration value="yes"/>
79
+ <xs:enumeration value="no"/>
80
+ <xs:enumeration value="auto"/>
81
+ </xs:restriction>
82
+ </xs:simpleType>
83
+ </xs:attribute>
84
+ </xs:attributeGroup>
85
+
86
+ <xs:group name="xhtml.frame.content">
87
+ <xs:sequence/>
88
+ </xs:group>
89
+
90
+ <xs:complexType name="xhtml.frame.type">
91
+ <xs:group ref="xhtml.frame.content"/>
92
+ <xs:attributeGroup ref="xhtml.frame.attlist"/>
93
+ </xs:complexType>
94
+
95
+ <!--
96
+ noframes
97
+ -->
98
+ <xs:group name="xhtml.noframes.content">
99
+ <xs:sequence>
100
+ <xs:element ref="body"/>
101
+ </xs:sequence>
102
+ </xs:group>
103
+
104
+ <xs:attributeGroup name="xhtml.noframes.attlist">
105
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
106
+ </xs:attributeGroup>
107
+
108
+ <xs:complexType name="xhtml.noframes.type" mixed="true">
109
+ <xs:group ref="xhtml.noframes.content"/>
110
+ <xs:attributeGroup ref="xhtml.noframes.attlist"/>
111
+ </xs:complexType>
112
+
113
+ </xs:schema>
@@ -0,0 +1,62 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/" elementFormDefault="qualified">
3
+ <xs:annotation>
4
+ <xs:documentation>
5
+ This is the XML Schema Modular Framework support module for XHTML
6
+ $Id: xhtml-framework-1.xsd,v 1.5 2005/09/26 23:37:47 ahby Exp $
7
+ </xs:documentation>
8
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
9
+ </xs:annotation>
10
+ <xs:annotation>
11
+ <xs:documentation>
12
+ XHTML Modular Framework
13
+ This required module instantiates the necessary modules
14
+ needed to support the XHTML modularization framework.
15
+
16
+ The Schema modules instantiated are:
17
+ + notations
18
+ + datatypes
19
+ + common attributes
20
+ + character entities
21
+ </xs:documentation>
22
+ <xs:documentation source="http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_commonatts"/>
23
+ </xs:annotation>
24
+ <!-- xs:include schemaLocation="xhtml-notations-1.xsd">
25
+ <xs:annotation>
26
+ <xs:documentation>
27
+ Notations module
28
+ Declares XHTML notations for Attribute data types
29
+ </xs:documentation>
30
+ </xs:annotation>
31
+ </xs:include -->
32
+ <xs:import namespace="http://www.w3.org/1999/xhtml/datatypes/" schemaLocation="xhtml-datatypes-1.xsd">
33
+ <xs:annotation>
34
+ <xs:documentation>
35
+ This module defines XHTML Attribute DataTypes
36
+ </xs:documentation>
37
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstraction.html#s_common_attrtypes"/>
38
+ </xs:annotation>
39
+ </xs:import>
40
+ <xs:include schemaLocation="xhtml-attribs-1.xsd">
41
+ <xs:annotation>
42
+ <xs:documentation>
43
+ This module defines Common attributes for XHTML
44
+ </xs:documentation>
45
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_commonatts"/>
46
+ </xs:annotation>
47
+ </xs:include>
48
+ <!-- xs:include schemaLocation="xhtml-charent-1.xsd">
49
+ <xs:annotation>
50
+ <xs:documentation>
51
+ Character entities module
52
+ Note: Entities are not supported in XML Schema
53
+ The Schema Module uses DTDs to define Entities
54
+
55
+ This module defines
56
+ + XHTML Latin 1 Character Entities
57
+ + XHTML Special Characters
58
+ + XHTML Mathematical, Greek, and Symbolic Characters
59
+ </xs:documentation>
60
+ </xs:annotation>
61
+ </xs:include -->
62
+ </xs:schema>