markup_validity 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +10 -0
- data/Manifest.txt +88 -0
- data/Rakefile +7 -11
- data/lib/markup_validity.rb +1 -1
- data/lib/markup_validity/MarkUp.html +1095 -0
- data/lib/markup_validity/SCHEMA.html +90 -0
- data/lib/markup_validity/assertions.rb +8 -1
- data/lib/markup_validity/examples.html +25 -0
- data/lib/markup_validity/rspec.rb +19 -0
- data/lib/markup_validity/templates.html +15 -0
- data/lib/markup_validity/validator.rb +27 -1
- data/lib/markup_validity/xframes-1.xsd +166 -0
- data/lib/markup_validity/xhtml-access-1.xsd +43 -0
- data/lib/markup_validity/xhtml-applet-1.xsd +66 -0
- data/lib/markup_validity/xhtml-attribs-1.xsd +67 -0
- data/lib/markup_validity/xhtml-base-1.xsd +31 -0
- data/lib/markup_validity/xhtml-basic-form-1.xsd +195 -0
- data/lib/markup_validity/xhtml-basic-table-1.xsd +169 -0
- data/lib/markup_validity/xhtml-basic10-model-1.xsd +385 -0
- data/lib/markup_validity/xhtml-basic10-module-redefines-1.xsd +61 -0
- data/lib/markup_validity/xhtml-basic10-modules-1.xsd +233 -0
- data/lib/markup_validity/xhtml-basic10.xsd +99 -0
- data/lib/markup_validity/xhtml-basic11-model-1.xsd +622 -0
- data/lib/markup_validity/xhtml-basic11-modules-1.xsd +508 -0
- data/lib/markup_validity/xhtml-basic11.xsd +105 -0
- data/lib/markup_validity/xhtml-bdo-1.xsd +72 -0
- data/lib/markup_validity/xhtml-blkphras-1.xsd +155 -0
- data/lib/markup_validity/xhtml-blkpres-1.xsd +32 -0
- data/lib/markup_validity/xhtml-blkstruct-1.xsd +44 -0
- data/lib/markup_validity/xhtml-charent-1.xsd +38 -0
- data/lib/markup_validity/xhtml-copyright-1.xsd +29 -0
- data/lib/markup_validity/xhtml-csismap-1.xsd +91 -0
- data/lib/markup_validity/xhtml-datatypes-1.xsd +177 -0
- data/lib/markup_validity/xhtml-edit-1.xsd +34 -0
- data/lib/markup_validity/xhtml-events-1.xsd +130 -0
- data/lib/markup_validity/xhtml-form-1.xsd +321 -0
- data/lib/markup_validity/xhtml-frames-1.xsd +113 -0
- data/lib/markup_validity/xhtml-framework-1.xsd +62 -0
- data/lib/markup_validity/xhtml-hypertext-1.xsd +47 -0
- data/lib/markup_validity/xhtml-iframe-1.xsd +68 -0
- data/lib/markup_validity/xhtml-image-1.xsd +40 -0
- data/lib/markup_validity/xhtml-inlphras-1.xsd +158 -0
- data/lib/markup_validity/xhtml-inlpres-1.xsd +34 -0
- data/lib/markup_validity/xhtml-inlstruct-1.xsd +45 -0
- data/lib/markup_validity/xhtml-inlstyle-1.xsd +22 -0
- data/lib/markup_validity/xhtml-inputmode-1.xsd +35 -0
- data/lib/markup_validity/xhtml-lat1.ent +196 -0
- data/lib/markup_validity/xhtml-legacy-1.xsd +97 -0
- data/lib/markup_validity/xhtml-link-1.xsd +45 -0
- data/lib/markup_validity/xhtml-list-1.xsd +94 -0
- data/lib/markup_validity/xhtml-meta-1.xsd +54 -0
- data/lib/markup_validity/xhtml-metaAttributes-1.xsd +39 -0
- data/lib/markup_validity/xhtml-misc-1.xsd +441 -0
- data/lib/markup_validity/xhtml-nameident-1.xsd +63 -0
- data/lib/markup_validity/xhtml-notations-1.xsd +69 -0
- data/lib/markup_validity/xhtml-object-1.xsd +71 -0
- data/lib/markup_validity/xhtml-param-1.xsd +46 -0
- data/lib/markup_validity/xhtml-pres-1.xsd +46 -0
- data/lib/markup_validity/xhtml-print-1.xsd +85 -0
- data/lib/markup_validity/xhtml-print-model-1.xsd +604 -0
- data/lib/markup_validity/xhtml-print-modules-1.xsd +422 -0
- data/lib/markup_validity/xhtml-rdfa-1.dtd +438 -0
- data/lib/markup_validity/xhtml-rdfa-1.xsd +116 -0
- data/lib/markup_validity/xhtml-rdfa-model-1.xsd +461 -0
- data/lib/markup_validity/xhtml-rdfa-modules-1.xsd +548 -0
- data/lib/markup_validity/xhtml-ruby-1.xsd +170 -0
- data/lib/markup_validity/xhtml-ruby-basic-1.xsd +84 -0
- data/lib/markup_validity/xhtml-script-1.xsd +65 -0
- data/lib/markup_validity/xhtml-special.ent +80 -0
- data/lib/markup_validity/xhtml-ssismap-1.xsd +38 -0
- data/lib/markup_validity/xhtml-struct-1.xsd +85 -0
- data/lib/markup_validity/xhtml-style-1.xsd +47 -0
- data/lib/markup_validity/xhtml-symbol.ent +237 -0
- data/lib/markup_validity/xhtml-table-1.xsd +267 -0
- data/lib/markup_validity/xhtml-target-1.xsd +49 -0
- data/lib/markup_validity/xhtml-text-1.xsd +62 -0
- data/lib/markup_validity/xhtml1-strict.dtd +978 -0
- data/lib/markup_validity/xhtml1-transitional.dtd +1201 -0
- data/lib/markup_validity/xhtml11-model-1.xsd +715 -0
- data/lib/markup_validity/xhtml11-module-redefines-1.xsd +335 -0
- data/lib/markup_validity/xhtml11-modules-1.xsd +605 -0
- data/lib/markup_validity/xhtml11.xsd +107 -0
- data/lib/markup_validity/xhtml2.xsd +21 -0
- data/lib/markup_validity/xml-events-1.xsd +73 -0
- data/lib/markup_validity/xml-events-2.xsd +73 -0
- data/lib/markup_validity/xml-events-attribs-1.xsd +73 -0
- data/lib/markup_validity/xml-events-attribs-2.xsd +75 -0
- data/lib/markup_validity/xml-events-copyright-1.xsd +34 -0
- data/lib/markup_validity/xml-events-copyright-2.xsd +34 -0
- data/lib/markup_validity/xml-handlers-1.xsd +136 -0
- data/lib/markup_validity/xml-handlers-2.xsd +98 -0
- data/lib/markup_validity/xml-script-1.xsd +38 -0
- data/spec/matcher_spec.rb +8 -0
- data/test/assets/invalid_entity.xhtml +109 -0
- data/test/assets/invalid_entity_transitional.xhtml +109 -0
- data/test/helper.rb +48 -0
- data/test/test_markup_validity.rb +19 -0
- metadata +90 -3
@@ -0,0 +1,29 @@
|
|
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 XHTML, a reformulation of HTML as a modular XML application
|
12
|
+
The Extensible HyperText Markup Language (XHTML)
|
13
|
+
Copyright ©1998-2005 World Wide Web Consortium
|
14
|
+
(Massachusetts Institute of Technology, European Research Consortium
|
15
|
+
for Informatics and Mathematics, Keio University).
|
16
|
+
All Rights Reserved.
|
17
|
+
|
18
|
+
Permission to use, copy, modify and distribute the XHTML Schema
|
19
|
+
modules and their accompanying xs:documentation for any purpose
|
20
|
+
and without fee is hereby granted in perpetuity, provided that the above
|
21
|
+
copyright notice and this paragraph appear in all copies.
|
22
|
+
The copyright holders make no representation about the suitability of
|
23
|
+
these XML Schema modules for any purpose.
|
24
|
+
|
25
|
+
They are provided "as is" without expressed or implied warranty.
|
26
|
+
</xs:documentation>
|
27
|
+
</xs:annotation>
|
28
|
+
|
29
|
+
</xs:schema>
|
@@ -0,0 +1,91 @@
|
|
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
|
+
Client-side Image Maps
|
8
|
+
This is the XML Schema Client-side Image Maps module for XHTML
|
9
|
+
|
10
|
+
* area, map
|
11
|
+
|
12
|
+
This module declares elements and attributes to support client-side
|
13
|
+
image maps.
|
14
|
+
|
15
|
+
$Id: xhtml-csismap-1.xsd,v 1.2 2005/09/26 22:54:53 ahby Exp $
|
16
|
+
</xs:documentation>
|
17
|
+
<xs:documentation source="xhtml-copyright-1.xsd"/>
|
18
|
+
<xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_imapmodule"/>
|
19
|
+
</xs:annotation>
|
20
|
+
<xs:simpleType name="xhtml.Shape.Datatype">
|
21
|
+
<xs:restriction base="xs:NMTOKEN">
|
22
|
+
<xs:enumeration value="rect"/>
|
23
|
+
<xs:enumeration value="circle"/>
|
24
|
+
<xs:enumeration value="poly"/>
|
25
|
+
<xs:enumeration value="default"/>
|
26
|
+
</xs:restriction>
|
27
|
+
</xs:simpleType>
|
28
|
+
<xs:simpleType name="xhtml.Coords.Datatype">
|
29
|
+
<xs:restriction base="xh11d:Text"/>
|
30
|
+
</xs:simpleType>
|
31
|
+
<!-- modify anchor attribute definition list -->
|
32
|
+
<xs:attributeGroup name="xhtml.a.csim.attlist">
|
33
|
+
<xs:attribute name="shape" type="xhtml.Shape.Datatype" default="rect"/>
|
34
|
+
<xs:attribute name="coords" type="xhtml.Coords.Datatype"/>
|
35
|
+
</xs:attributeGroup>
|
36
|
+
<!-- modify img attribute definition list -->
|
37
|
+
<xs:attributeGroup name="xhtml.img.csim.attlist">
|
38
|
+
<xs:attribute name="usemap" type="xs:IDREF"/>
|
39
|
+
</xs:attributeGroup>
|
40
|
+
<!-- modify form input attribute definition list -->
|
41
|
+
<xs:attributeGroup name="xhtml.input.csim.attlist">
|
42
|
+
<xs:attribute name="usemap" type="xs:IDREF"/>
|
43
|
+
</xs:attributeGroup>
|
44
|
+
<!-- modify object attribute definition list -->
|
45
|
+
<xs:attributeGroup name="xhtml.object.csim.attlist">
|
46
|
+
<xs:attribute name="usemap" type="xs:IDREF"/>
|
47
|
+
</xs:attributeGroup>
|
48
|
+
<xs:attributeGroup name="xhtml.area.attlist">
|
49
|
+
<xs:attributeGroup ref="xhtml.Common.attrib"/>
|
50
|
+
<xs:attribute name="href" type="xh11d:URI"/>
|
51
|
+
<xs:attribute name="shape" type="xhtml.Shape.Datatype" default="rect"/>
|
52
|
+
<xs:attribute name="coords" type="xhtml.Coords.Datatype"/>
|
53
|
+
<xs:attribute name="nohref">
|
54
|
+
<xs:simpleType>
|
55
|
+
<xs:restriction base="xs:NMTOKEN">
|
56
|
+
<xs:enumeration value="nohref"/>
|
57
|
+
</xs:restriction>
|
58
|
+
</xs:simpleType>
|
59
|
+
</xs:attribute>
|
60
|
+
<xs:attribute name="alt" type="xh11d:Text" use="required"/>
|
61
|
+
<xs:attribute name="tabindex" type="xh11d:Number"/>
|
62
|
+
<xs:attribute name="accesskey" type="xh11d:Character"/>
|
63
|
+
</xs:attributeGroup>
|
64
|
+
<xs:group name="xhtml.area.content">
|
65
|
+
<xs:sequence/>
|
66
|
+
</xs:group>
|
67
|
+
<xs:complexType name="xhtml.area.type">
|
68
|
+
<xs:group ref="xhtml.area.content"/>
|
69
|
+
<xs:attributeGroup ref="xhtml.area.attlist"/>
|
70
|
+
</xs:complexType>
|
71
|
+
<!-- map -->
|
72
|
+
<xs:attributeGroup name="xhtml.map.attlist">
|
73
|
+
<xs:attribute name="id" type="xs:ID" use="required"/>
|
74
|
+
<xs:attributeGroup ref="xhtml.class"/>
|
75
|
+
<xs:attributeGroup ref="xhtml.title"/>
|
76
|
+
<xs:attributeGroup ref="xhtml.Core.extra.attrib"/>
|
77
|
+
<xs:attributeGroup ref="xhtml.I18n.attrib"/>
|
78
|
+
</xs:attributeGroup>
|
79
|
+
<xs:group name="xhtml.map.content">
|
80
|
+
<xs:sequence>
|
81
|
+
<xs:choice maxOccurs="unbounded">
|
82
|
+
<xs:group ref="xhtml.Block.mix"/>
|
83
|
+
<xs:element name="area" type="xhtml.area.type"/>
|
84
|
+
</xs:choice>
|
85
|
+
</xs:sequence>
|
86
|
+
</xs:group>
|
87
|
+
<xs:complexType name="xhtml.map.type">
|
88
|
+
<xs:group ref="xhtml.map.content"/>
|
89
|
+
<xs:attributeGroup ref="xhtml.map.attlist"/>
|
90
|
+
</xs:complexType>
|
91
|
+
</xs:schema>
|
@@ -0,0 +1,177 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema
|
3
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
4
|
+
xmlns="http://www.w3.org/1999/xhtml/datatypes/"
|
5
|
+
xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/"
|
6
|
+
targetNamespace="http://www.w3.org/1999/xhtml/datatypes/"
|
7
|
+
elementFormDefault="qualified"
|
8
|
+
>
|
9
|
+
<xs:annotation>
|
10
|
+
<xs:documentation>
|
11
|
+
XHTML Datatypes
|
12
|
+
This is the XML Schema datatypes module for XHTML
|
13
|
+
|
14
|
+
Defines containers for the XHTML datatypes, many of
|
15
|
+
these imported from other specifications and standards.
|
16
|
+
|
17
|
+
$Id: xhtml-datatypes-1.xsd,v 1.11 2008/10/07 16:57:03 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/abstraction.html#s_common_attrtypes"/>
|
21
|
+
</xs:annotation>
|
22
|
+
|
23
|
+
<!-- nn for pixels or nn% for percentage length -->
|
24
|
+
<xs:simpleType name="Length">
|
25
|
+
<xs:union memberTypes="xs:nonNegativeInteger">
|
26
|
+
<xs:simpleType>
|
27
|
+
<xs:restriction base="xs:token">
|
28
|
+
<xs:pattern value="\d+[%]|\d*\.\d+[%]"/>
|
29
|
+
</xs:restriction>
|
30
|
+
</xs:simpleType>
|
31
|
+
</xs:union>
|
32
|
+
</xs:simpleType>
|
33
|
+
<!-- space-separated list of link types -->
|
34
|
+
<xs:simpleType name="LinkTypes">
|
35
|
+
<xs:list itemType="xs:NMTOKEN"/>
|
36
|
+
</xs:simpleType>
|
37
|
+
<!-- single or comma-separated list of media descriptors -->
|
38
|
+
<xs:simpleType name="MediaDesc">
|
39
|
+
<xs:restriction base="xs:string"/>
|
40
|
+
</xs:simpleType>
|
41
|
+
<!-- pixel, percentage, or relative -->
|
42
|
+
<xs:simpleType name="MultiLength">
|
43
|
+
<xs:union memberTypes="xh11d:Length">
|
44
|
+
<xs:simpleType>
|
45
|
+
<xs:restriction base="xs:token">
|
46
|
+
<xs:pattern value="\d*\*"/>
|
47
|
+
</xs:restriction>
|
48
|
+
</xs:simpleType>
|
49
|
+
</xs:union>
|
50
|
+
</xs:simpleType>
|
51
|
+
<!-- one or more digits (NUMBER) -->
|
52
|
+
<xs:simpleType name="Number">
|
53
|
+
<xs:restriction base="xs:nonNegativeInteger"/>
|
54
|
+
</xs:simpleType>
|
55
|
+
<!-- integer representing length in pixels -->
|
56
|
+
<xs:simpleType name="Pixels">
|
57
|
+
<xs:restriction base="xs:nonNegativeInteger"/>
|
58
|
+
</xs:simpleType>
|
59
|
+
<!-- script expression -->
|
60
|
+
<xs:simpleType name="Script">
|
61
|
+
<xs:restriction base="xs:string"/>
|
62
|
+
</xs:simpleType>
|
63
|
+
<!-- sixteen color names or RGB color expression-->
|
64
|
+
<xs:simpleType name="Color">
|
65
|
+
<xs:union memberTypes="xs:NMTOKEN">
|
66
|
+
<xs:simpleType>
|
67
|
+
<xs:restriction base="xs:token">
|
68
|
+
<xs:pattern value="#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?"/>
|
69
|
+
</xs:restriction>
|
70
|
+
</xs:simpleType>
|
71
|
+
</xs:union>
|
72
|
+
</xs:simpleType>
|
73
|
+
<!-- textual content -->
|
74
|
+
<xs:simpleType name="Text">
|
75
|
+
<xs:restriction base="xs:string"/>
|
76
|
+
</xs:simpleType>
|
77
|
+
<!-- Imported Datatypes -->
|
78
|
+
<!-- a single character, as per section 2.2 of [XML] -->
|
79
|
+
<xs:simpleType name="Character">
|
80
|
+
<xs:restriction base="xs:string">
|
81
|
+
<xs:length value="1" fixed="true"/>
|
82
|
+
</xs:restriction>
|
83
|
+
</xs:simpleType>
|
84
|
+
<!-- a character encoding, as per [RFC2045] -->
|
85
|
+
<xs:simpleType name="Charset">
|
86
|
+
<xs:restriction base="xs:string"/>
|
87
|
+
</xs:simpleType>
|
88
|
+
<!-- a space separated list of character encodings, as per [RFC2045] -->
|
89
|
+
<xs:simpleType name="Charsets">
|
90
|
+
<xs:list itemType="Charset"/>
|
91
|
+
</xs:simpleType>
|
92
|
+
<!-- media type, as per [RFC2045] -->
|
93
|
+
<xs:simpleType name="ContentType">
|
94
|
+
<xs:restriction base="xs:string"/>
|
95
|
+
</xs:simpleType>
|
96
|
+
<!-- comma-separated list of media types, as per [RFC2045] -->
|
97
|
+
<xs:simpleType name="ContentTypes">
|
98
|
+
<xs:restriction base="xs:string"/>
|
99
|
+
</xs:simpleType>
|
100
|
+
<!-- date and time information. ISO date format -->
|
101
|
+
<xs:simpleType name="Datetime">
|
102
|
+
<xs:restriction base="xs:dateTime"/>
|
103
|
+
</xs:simpleType>
|
104
|
+
<!-- formal public identifier, as per [ISO8879] -->
|
105
|
+
<xs:simpleType name="FPI">
|
106
|
+
<xs:restriction base="xs:normalizedString"/>
|
107
|
+
</xs:simpleType>
|
108
|
+
|
109
|
+
<!-- a window name as used in the target attribute -->
|
110
|
+
<xs:simpleType name="FrameTarget">
|
111
|
+
<xs:union>
|
112
|
+
<xs:simpleType>
|
113
|
+
<xs:restriction base="xs:NMTOKEN">
|
114
|
+
<xs:enumeration value="_blank"/>
|
115
|
+
<xs:enumeration value="_self"/>
|
116
|
+
<xs:enumeration value="_parent"/>
|
117
|
+
<xs:enumeration value="_top"/>
|
118
|
+
</xs:restriction>
|
119
|
+
</xs:simpleType>
|
120
|
+
<xs:simpleType>
|
121
|
+
<xs:restriction base="xs:string">
|
122
|
+
<xs:pattern value="[a-zA-Z].*"/>
|
123
|
+
</xs:restriction>
|
124
|
+
</xs:simpleType>
|
125
|
+
</xs:union>
|
126
|
+
</xs:simpleType>
|
127
|
+
|
128
|
+
<!-- a language code, as per [RFC3066] -->
|
129
|
+
<xs:simpleType name="LanguageCode">
|
130
|
+
<xs:restriction base="xs:language"/>
|
131
|
+
</xs:simpleType>
|
132
|
+
<!-- a comma separated list of language ranges -->
|
133
|
+
<xs:simpleType name="LanguageCodes">
|
134
|
+
<xs:restriction base="xs:string"/>
|
135
|
+
</xs:simpleType>
|
136
|
+
<!-- a Uniform Resource Identifier, see [URI] -->
|
137
|
+
<xs:simpleType name="URI">
|
138
|
+
<xs:restriction base="xs:anyURI"/>
|
139
|
+
</xs:simpleType>
|
140
|
+
<!-- a space-separated list of Uniform Resource Identifiers, see [URI] -->
|
141
|
+
<xs:simpleType name="URIs">
|
142
|
+
<xs:list itemType="xs:anyURI"/>
|
143
|
+
</xs:simpleType>
|
144
|
+
<!-- comma-separated list of MultiLength -->
|
145
|
+
<xs:simpleType name="MultiLengths">
|
146
|
+
<xs:restriction base="xs:string"/>
|
147
|
+
</xs:simpleType>
|
148
|
+
<!-- character Data -->
|
149
|
+
<xs:simpleType name="CDATA">
|
150
|
+
<xs:restriction base="xs:string"/>
|
151
|
+
</xs:simpleType>
|
152
|
+
<!-- CURIE placeholder datatypes -->
|
153
|
+
<xs:simpleType name="CURIE">
|
154
|
+
<xs:restriction base="xs:string">
|
155
|
+
<xs:pattern value="(([\i-[:]][\c-[:]]*)?:)?.+" />
|
156
|
+
<xs:minLength value="1"/>
|
157
|
+
</xs:restriction>
|
158
|
+
</xs:simpleType>
|
159
|
+
<xs:simpleType name="CURIEs">
|
160
|
+
<xs:list itemType="xh11d:CURIE"/>
|
161
|
+
</xs:simpleType>
|
162
|
+
<xs:simpleType name="SafeCURIE">
|
163
|
+
<xs:restriction base="xs:string">
|
164
|
+
<xs:pattern value="\[(([\i-[:]][\c-[:]]*)?:)?.+\]" />
|
165
|
+
<xs:minLength value="3"/>
|
166
|
+
</xs:restriction>
|
167
|
+
</xs:simpleType>
|
168
|
+
<xs:simpleType name="SafeCURIEs">
|
169
|
+
<xs:list itemType="xh11d:SafeCURIE"/>
|
170
|
+
</xs:simpleType>
|
171
|
+
<xs:simpleType name="URIorSafeCURIE">
|
172
|
+
<xs:union memberTypes="xs:anyURI xh11d:SafeCURIE" />
|
173
|
+
</xs:simpleType>
|
174
|
+
<xs:simpleType name="URIorSafeCURIEs">
|
175
|
+
<xs:list itemType="xh11d:URIorSafeCURIE"/>
|
176
|
+
</xs:simpleType>
|
177
|
+
</xs:schema>
|
@@ -0,0 +1,34 @@
|
|
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
|
+
Editing Elements
|
8
|
+
This is the XML Schema Editing Markup module for XHTML
|
9
|
+
|
10
|
+
* ins, del
|
11
|
+
|
12
|
+
This module declares element types and attributes used to indicate
|
13
|
+
inserted and deleted content while editing a document.
|
14
|
+
|
15
|
+
$Id: xhtml-edit-1.xsd,v 1.2 2005/09/26 22:54:53 ahby Exp $
|
16
|
+
</xs:documentation>
|
17
|
+
<xs:documentation source="xhtml-copyright-1.xsd"/>
|
18
|
+
<xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_editmodule"/>
|
19
|
+
</xs:annotation>
|
20
|
+
<xs:attributeGroup name="xhtml.edit.attlist">
|
21
|
+
<xs:attributeGroup ref="xhtml.Common.attrib"/>
|
22
|
+
<xs:attribute name="cite" type="xh11d:URI"/>
|
23
|
+
<xs:attribute name="datetime" type="xh11d:Datetime"/>
|
24
|
+
</xs:attributeGroup>
|
25
|
+
<xs:group name="xhtml.edit.content">
|
26
|
+
<xs:sequence>
|
27
|
+
<xs:group ref="xhtml.Flow.mix" minOccurs="0" maxOccurs="unbounded"/>
|
28
|
+
</xs:sequence>
|
29
|
+
</xs:group>
|
30
|
+
<xs:complexType name="xhtml.edit.type" mixed="true">
|
31
|
+
<xs:group ref="xhtml.edit.content"/>
|
32
|
+
<xs:attributeGroup ref="xhtml.edit.attlist"/>
|
33
|
+
</xs:complexType>
|
34
|
+
</xs:schema>
|
@@ -0,0 +1,130 @@
|
|
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
|
+
|
10
|
+
<xs:annotation>
|
11
|
+
<xs:documentation>
|
12
|
+
This is the XML Schema Intrinsic Events module for XHTML
|
13
|
+
$Id: xhtml-events-1.xsd,v 1.4 2005/09/26 22:54:53 ahby Exp $
|
14
|
+
</xs:documentation>
|
15
|
+
<xs:documentation source="xhtml-copyright-1.xsd"/>
|
16
|
+
</xs:annotation>
|
17
|
+
<xs:annotation>
|
18
|
+
<xs:documentation>
|
19
|
+
Intrinsic Event Attributes
|
20
|
+
These are the event attributes defined in HTML 4,
|
21
|
+
Section 18.2.3 "Intrinsic Events".
|
22
|
+
</xs:documentation>
|
23
|
+
<xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_intrinsiceventsmodule"/>
|
24
|
+
</xs:annotation>
|
25
|
+
<xs:attributeGroup name="xhtml.Events.attrib">
|
26
|
+
<xs:attribute name="onclick" type="xh11d:Script"/>
|
27
|
+
<xs:attribute name="ondblclick" type="xh11d:Script"/>
|
28
|
+
<xs:attribute name="onmousedown" type="xh11d:Script"/>
|
29
|
+
<xs:attribute name="onmouseup" type="xh11d:Script"/>
|
30
|
+
<xs:attribute name="onmouseover" type="xh11d:Script"/>
|
31
|
+
<xs:attribute name="onmousemove" type="xh11d:Script"/>
|
32
|
+
<xs:attribute name="onmouseout" type="xh11d:Script"/>
|
33
|
+
<xs:attribute name="onkeypress" type="xh11d:Script"/>
|
34
|
+
<xs:attribute name="onkeydown" type="xh11d:Script"/>
|
35
|
+
<xs:attribute name="onkeyup" type="xh11d:Script"/>
|
36
|
+
</xs:attributeGroup>
|
37
|
+
<!--
|
38
|
+
additional attributes on anchor element
|
39
|
+
-->
|
40
|
+
<xs:attributeGroup name="xhtml.a.events.attlist">
|
41
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
42
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
43
|
+
</xs:attributeGroup>
|
44
|
+
<!--
|
45
|
+
additional attributes on form element
|
46
|
+
-->
|
47
|
+
<xs:attributeGroup name="xhtml.form.events.attlist">
|
48
|
+
<xs:attribute name="onsubmit" type="xh11d:Script"/>
|
49
|
+
<xs:attribute name="onreset" type="xh11d:Script"/>
|
50
|
+
</xs:attributeGroup>
|
51
|
+
<!--
|
52
|
+
additional attributes on label element
|
53
|
+
-->
|
54
|
+
<xs:attributeGroup name="xhtml.label.events.attlist">
|
55
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
56
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
57
|
+
</xs:attributeGroup>
|
58
|
+
<!--
|
59
|
+
additional attributes on input element
|
60
|
+
-->
|
61
|
+
<xs:attributeGroup name="xhtml.input.events.attlist">
|
62
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
63
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
64
|
+
<xs:attribute name="onselect" type="xh11d:Script"/>
|
65
|
+
<xs:attribute name="onchange" type="xh11d:Script"/>
|
66
|
+
</xs:attributeGroup>
|
67
|
+
<!--
|
68
|
+
additional attributes on select element
|
69
|
+
-->
|
70
|
+
<xs:attributeGroup name="xhtml.select.events.attlist">
|
71
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
72
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
73
|
+
<xs:attribute name="onchange" type="xh11d:Script"/>
|
74
|
+
</xs:attributeGroup>
|
75
|
+
<!--
|
76
|
+
additional attributes on textarea element
|
77
|
+
-->
|
78
|
+
<xs:attributeGroup name="xhtml.textarea.events.attlist">
|
79
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
80
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
81
|
+
<xs:attribute name="onselect" type="xh11d:Script"/>
|
82
|
+
<xs:attribute name="onchange" type="xh11d:Script"/>
|
83
|
+
</xs:attributeGroup>
|
84
|
+
<!--
|
85
|
+
additional attributes on button element
|
86
|
+
-->
|
87
|
+
<xs:attributeGroup name="xhtml.button.events.attlist">
|
88
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
89
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
90
|
+
</xs:attributeGroup>
|
91
|
+
<!--
|
92
|
+
additional attributes on body element
|
93
|
+
-->
|
94
|
+
<xs:attributeGroup name="xhtml.body.events.attlist">
|
95
|
+
<xs:attribute name="onload" type="xh11d:Script"/>
|
96
|
+
<xs:attribute name="onunload" type="xh11d:Script"/>
|
97
|
+
</xs:attributeGroup>
|
98
|
+
<!--
|
99
|
+
additional attributes on area element
|
100
|
+
-->
|
101
|
+
<xs:attributeGroup name="xhtml.area.events.attlist">
|
102
|
+
<xs:attribute name="onfocus" type="xh11d:Script"/>
|
103
|
+
<xs:attribute name="onblur" type="xh11d:Script"/>
|
104
|
+
</xs:attributeGroup>
|
105
|
+
<!--
|
106
|
+
Global Events Attributes
|
107
|
+
-->
|
108
|
+
<xs:attribute name="onclick" type="xh11d:Script"/>
|
109
|
+
<xs:attribute name="ondblclick" type="xh11d:Script"/>
|
110
|
+
<xs:attribute name="onmousedown" type="xh11d:Script"/>
|
111
|
+
<xs:attribute name="onmouseup" type="xh11d:Script"/>
|
112
|
+
<xs:attribute name="onmouseover" type="xh11d:Script"/>
|
113
|
+
<xs:attribute name="onmousemove" type="xh11d:Script"/>
|
114
|
+
<xs:attribute name="onmouseout" type="xh11d:Script"/>
|
115
|
+
<xs:attribute name="onkeypress" type="xh11d:Script"/>
|
116
|
+
<xs:attribute name="onkeydown" type="xh11d:Script"/>
|
117
|
+
<xs:attribute name="onkeyup" type="xh11d:Script"/>
|
118
|
+
<xs:attributeGroup name="xhtml.Global.events.attrib">
|
119
|
+
<xs:attribute ref="onclick"/>
|
120
|
+
<xs:attribute ref="ondblclick"/>
|
121
|
+
<xs:attribute ref="onmousedown"/>
|
122
|
+
<xs:attribute ref="onmouseup"/>
|
123
|
+
<xs:attribute ref="onmouseover"/>
|
124
|
+
<xs:attribute ref="onmousemove"/>
|
125
|
+
<xs:attribute ref="onmouseout"/>
|
126
|
+
<xs:attribute ref="onkeypress"/>
|
127
|
+
<xs:attribute ref="onkeydown"/>
|
128
|
+
<xs:attribute ref="onkeyup"/>
|
129
|
+
</xs:attributeGroup>
|
130
|
+
</xs:schema>
|