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.
Files changed (98) hide show
  1. data/CHANGELOG.rdoc +10 -0
  2. data/Manifest.txt +88 -0
  3. data/Rakefile +7 -11
  4. data/lib/markup_validity.rb +1 -1
  5. data/lib/markup_validity/MarkUp.html +1095 -0
  6. data/lib/markup_validity/SCHEMA.html +90 -0
  7. data/lib/markup_validity/assertions.rb +8 -1
  8. data/lib/markup_validity/examples.html +25 -0
  9. data/lib/markup_validity/rspec.rb +19 -0
  10. data/lib/markup_validity/templates.html +15 -0
  11. data/lib/markup_validity/validator.rb +27 -1
  12. data/lib/markup_validity/xframes-1.xsd +166 -0
  13. data/lib/markup_validity/xhtml-access-1.xsd +43 -0
  14. data/lib/markup_validity/xhtml-applet-1.xsd +66 -0
  15. data/lib/markup_validity/xhtml-attribs-1.xsd +67 -0
  16. data/lib/markup_validity/xhtml-base-1.xsd +31 -0
  17. data/lib/markup_validity/xhtml-basic-form-1.xsd +195 -0
  18. data/lib/markup_validity/xhtml-basic-table-1.xsd +169 -0
  19. data/lib/markup_validity/xhtml-basic10-model-1.xsd +385 -0
  20. data/lib/markup_validity/xhtml-basic10-module-redefines-1.xsd +61 -0
  21. data/lib/markup_validity/xhtml-basic10-modules-1.xsd +233 -0
  22. data/lib/markup_validity/xhtml-basic10.xsd +99 -0
  23. data/lib/markup_validity/xhtml-basic11-model-1.xsd +622 -0
  24. data/lib/markup_validity/xhtml-basic11-modules-1.xsd +508 -0
  25. data/lib/markup_validity/xhtml-basic11.xsd +105 -0
  26. data/lib/markup_validity/xhtml-bdo-1.xsd +72 -0
  27. data/lib/markup_validity/xhtml-blkphras-1.xsd +155 -0
  28. data/lib/markup_validity/xhtml-blkpres-1.xsd +32 -0
  29. data/lib/markup_validity/xhtml-blkstruct-1.xsd +44 -0
  30. data/lib/markup_validity/xhtml-charent-1.xsd +38 -0
  31. data/lib/markup_validity/xhtml-copyright-1.xsd +29 -0
  32. data/lib/markup_validity/xhtml-csismap-1.xsd +91 -0
  33. data/lib/markup_validity/xhtml-datatypes-1.xsd +177 -0
  34. data/lib/markup_validity/xhtml-edit-1.xsd +34 -0
  35. data/lib/markup_validity/xhtml-events-1.xsd +130 -0
  36. data/lib/markup_validity/xhtml-form-1.xsd +321 -0
  37. data/lib/markup_validity/xhtml-frames-1.xsd +113 -0
  38. data/lib/markup_validity/xhtml-framework-1.xsd +62 -0
  39. data/lib/markup_validity/xhtml-hypertext-1.xsd +47 -0
  40. data/lib/markup_validity/xhtml-iframe-1.xsd +68 -0
  41. data/lib/markup_validity/xhtml-image-1.xsd +40 -0
  42. data/lib/markup_validity/xhtml-inlphras-1.xsd +158 -0
  43. data/lib/markup_validity/xhtml-inlpres-1.xsd +34 -0
  44. data/lib/markup_validity/xhtml-inlstruct-1.xsd +45 -0
  45. data/lib/markup_validity/xhtml-inlstyle-1.xsd +22 -0
  46. data/lib/markup_validity/xhtml-inputmode-1.xsd +35 -0
  47. data/lib/markup_validity/xhtml-lat1.ent +196 -0
  48. data/lib/markup_validity/xhtml-legacy-1.xsd +97 -0
  49. data/lib/markup_validity/xhtml-link-1.xsd +45 -0
  50. data/lib/markup_validity/xhtml-list-1.xsd +94 -0
  51. data/lib/markup_validity/xhtml-meta-1.xsd +54 -0
  52. data/lib/markup_validity/xhtml-metaAttributes-1.xsd +39 -0
  53. data/lib/markup_validity/xhtml-misc-1.xsd +441 -0
  54. data/lib/markup_validity/xhtml-nameident-1.xsd +63 -0
  55. data/lib/markup_validity/xhtml-notations-1.xsd +69 -0
  56. data/lib/markup_validity/xhtml-object-1.xsd +71 -0
  57. data/lib/markup_validity/xhtml-param-1.xsd +46 -0
  58. data/lib/markup_validity/xhtml-pres-1.xsd +46 -0
  59. data/lib/markup_validity/xhtml-print-1.xsd +85 -0
  60. data/lib/markup_validity/xhtml-print-model-1.xsd +604 -0
  61. data/lib/markup_validity/xhtml-print-modules-1.xsd +422 -0
  62. data/lib/markup_validity/xhtml-rdfa-1.dtd +438 -0
  63. data/lib/markup_validity/xhtml-rdfa-1.xsd +116 -0
  64. data/lib/markup_validity/xhtml-rdfa-model-1.xsd +461 -0
  65. data/lib/markup_validity/xhtml-rdfa-modules-1.xsd +548 -0
  66. data/lib/markup_validity/xhtml-ruby-1.xsd +170 -0
  67. data/lib/markup_validity/xhtml-ruby-basic-1.xsd +84 -0
  68. data/lib/markup_validity/xhtml-script-1.xsd +65 -0
  69. data/lib/markup_validity/xhtml-special.ent +80 -0
  70. data/lib/markup_validity/xhtml-ssismap-1.xsd +38 -0
  71. data/lib/markup_validity/xhtml-struct-1.xsd +85 -0
  72. data/lib/markup_validity/xhtml-style-1.xsd +47 -0
  73. data/lib/markup_validity/xhtml-symbol.ent +237 -0
  74. data/lib/markup_validity/xhtml-table-1.xsd +267 -0
  75. data/lib/markup_validity/xhtml-target-1.xsd +49 -0
  76. data/lib/markup_validity/xhtml-text-1.xsd +62 -0
  77. data/lib/markup_validity/xhtml1-strict.dtd +978 -0
  78. data/lib/markup_validity/xhtml1-transitional.dtd +1201 -0
  79. data/lib/markup_validity/xhtml11-model-1.xsd +715 -0
  80. data/lib/markup_validity/xhtml11-module-redefines-1.xsd +335 -0
  81. data/lib/markup_validity/xhtml11-modules-1.xsd +605 -0
  82. data/lib/markup_validity/xhtml11.xsd +107 -0
  83. data/lib/markup_validity/xhtml2.xsd +21 -0
  84. data/lib/markup_validity/xml-events-1.xsd +73 -0
  85. data/lib/markup_validity/xml-events-2.xsd +73 -0
  86. data/lib/markup_validity/xml-events-attribs-1.xsd +73 -0
  87. data/lib/markup_validity/xml-events-attribs-2.xsd +75 -0
  88. data/lib/markup_validity/xml-events-copyright-1.xsd +34 -0
  89. data/lib/markup_validity/xml-events-copyright-2.xsd +34 -0
  90. data/lib/markup_validity/xml-handlers-1.xsd +136 -0
  91. data/lib/markup_validity/xml-handlers-2.xsd +98 -0
  92. data/lib/markup_validity/xml-script-1.xsd +38 -0
  93. data/spec/matcher_spec.rb +8 -0
  94. data/test/assets/invalid_entity.xhtml +109 -0
  95. data/test/assets/invalid_entity_transitional.xhtml +109 -0
  96. data/test/helper.rb +48 -0
  97. data/test/test_markup_validity.rb +19 -0
  98. metadata +90 -3
@@ -0,0 +1,107 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="http://www.w3.org/1999/xhtml"
5
+ xmlns:xh11d="http://www.w3.org/1999/xhtml/datatypes/"
6
+ xmlns="http://www.w3.org/1999/xhtml"
7
+ elementFormDefault="qualified" >
8
+ <xs:annotation>
9
+ <xs:documentation>
10
+ This is the XML Schema driver for XHTML 1.1.
11
+ Please use this namespace for XHTML elements:
12
+
13
+ "http://www.w3.org/1999/xhtml"
14
+
15
+ $Id: xhtml11.xsd,v 1.6 2007/02/22 13:02:52 ahby Exp $
16
+ </xs:documentation>
17
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
18
+ </xs:annotation>
19
+ <xs:annotation>
20
+ <xs:documentation>
21
+ This is XHTML, a reformulation of HTML as a modular XML application
22
+ The Extensible HyperText Markup Language (XHTML)
23
+ Copyright &#169;1998-2007 World Wide Web Consortium
24
+ (Massachusetts Institute of Technology, European Research Consortium
25
+ for Informatics and Mathematics, Keio University).
26
+ All Rights Reserved.
27
+
28
+ Permission to use, copy, modify and distribute the XHTML Schema
29
+ modules and their accompanying xs:documentation for any purpose
30
+ and without fee is hereby granted in perpetuity, provided that the above
31
+ copyright notice and this paragraph appear in all copies.
32
+ The copyright holders make no representation about the suitability of
33
+ these XML Schema modules for any purpose.
34
+
35
+ They are provided "as is" without expressed or implied warranty.
36
+ </xs:documentation>
37
+ </xs:annotation>
38
+ <xs:annotation>
39
+ <xs:documentation>
40
+ This is the Schema Driver file for XHTML1.1
41
+ Document Type
42
+
43
+ This schema
44
+ + imports external schemas (xml.xsd)
45
+ + refedines (and include)s schema modules for XHTML1.1 Document Type.
46
+ + includes Schema for Named content model for the
47
+ XHTML1.1 Document Type
48
+
49
+ XHTML1.1 Document Type includes the following Modules
50
+ XHTML Core modules (Required for XHTML Family Conformance)
51
+ + text
52
+ + hypertext
53
+ + lists
54
+ + structure
55
+ Other XHTML modules
56
+ + Edit
57
+ + Bdo
58
+ + Presentational
59
+ + Link
60
+ + Meta
61
+ + Base
62
+ + Scripting
63
+ + Style
64
+ + Image
65
+ + Applet
66
+ + Object
67
+ + Param (Applet/Object modules require Param Module)
68
+ + Tables
69
+ + Forms
70
+ + Client side image maps
71
+ + Server side image maps
72
+ + Ruby
73
+ </xs:documentation>
74
+ </xs:annotation>
75
+ <xs:import
76
+ namespace="http://www.w3.org/XML/1998/namespace"
77
+ schemaLocation="http://www.w3.org/2001/xml.xsd">
78
+ <xs:annotation>
79
+ <xs:documentation>
80
+ This import brings in the XML namespace attributes
81
+ The XML attributes are used by various modules.
82
+ </xs:documentation>
83
+ </xs:annotation>
84
+ </xs:import>
85
+ <xs:include
86
+ schemaLocation="xhtml11-model-1.xsd">
87
+ <xs:annotation>
88
+ <xs:documentation>
89
+ Document Model module for the XHTML1.1 Document Type.
90
+ This schema file defines all named models used by XHTML
91
+ Modularization Framework for XHTML1.1 Document Type
92
+ </xs:documentation>
93
+ </xs:annotation>
94
+ </xs:include>
95
+ <xs:import
96
+ namespace="http://www.w3.org/1999/xhtml/datatypes/"
97
+ schemaLocation="xhtml-datatypes-1.xsd"/>
98
+ <xs:include
99
+ schemaLocation="xhtml11-modules-1.xsd">
100
+ <xs:annotation>
101
+ <xs:documentation>
102
+ Schema that includes all modules (and redefinitions)
103
+ for XHTML1.1 Document Type.
104
+ </xs:documentation>
105
+ </xs:annotation>
106
+ </xs:include>
107
+ </xs:schema>
@@ -0,0 +1,21 @@
1
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
2
+ targetNamespace="http://www.w3.org/2002/06/xhtml2/">
3
+
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ A minimal XML Schema for XHTML 2.0
7
+ $Id: xhtml2.xsd,v 1.4 2005/06/14 15:28:27 mimasa Exp $
8
+ </xs:documentation>
9
+ </xs:annotation>
10
+
11
+ <xs:element name="html">
12
+ <xs:complexType>
13
+ <xs:sequence>
14
+ <xs:any namespace="##any" processContents="skip"
15
+ minOccurs="0" maxOccurs="unbounded"/>
16
+ </xs:sequence>
17
+ <xs:anyAttribute namespace="##any" processContents="skip"/>
18
+ </xs:complexType>
19
+ </xs:element>
20
+
21
+ </xs:schema>
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="http://www.w3.org/2001/xml-events"
4
+ xmlns="http://www.w3.org/2001/xml-events"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
8
+ http://www.w3.org/2001/XMLSchema.xsd"
9
+ elementFormDefault="unqualified"
10
+ blockDefault="#all"
11
+ finalDefault="#all"
12
+ attributeFormDefault="unqualified">
13
+
14
+ <xs:annotation>
15
+ <xs:documentation>
16
+ This is the XML Schema for XML Events
17
+
18
+ URI: http://www.w3.org/MarkUp/SCHEMA/xml-events-1.xsd
19
+ $Id: xml-events-1.xsd,v 1.8 2004/11/22 17:09:15 ahby Exp $
20
+ </xs:documentation>
21
+ <xs:documentation source="xml-events-copyright-1.xsd"/>
22
+ </xs:annotation>
23
+
24
+ <xs:annotation>
25
+ <xs:documentation>
26
+ XML Events element listener
27
+
28
+ This module defines the listener element for XML Events.
29
+ This element can be used to define event listeners. This
30
+ module relies upon the XmlEvents.attlist attribute group
31
+ defined in xml-events-attribs-1.xsd.
32
+ </xs:documentation>
33
+ </xs:annotation>
34
+
35
+ <xs:attributeGroup name="listener.attlist">
36
+ <xs:attribute name="event" use="required" type="xs:NMTOKEN"/>
37
+ <xs:attribute name="observer" type="xs:IDREF"/>
38
+ <xs:attribute name="target" type="xs:IDREF"/>
39
+ <xs:attribute name="handler" type="xs:anyURI"/>
40
+ <xs:attribute name="phase" default="default">
41
+ <xs:simpleType>
42
+ <xs:restriction base="xs:NMTOKEN">
43
+ <xs:enumeration value="capture"/>
44
+ <xs:enumeration value="default"/>
45
+ </xs:restriction>
46
+ </xs:simpleType>
47
+ </xs:attribute>
48
+ <xs:attribute name="propagate" default="continue">
49
+ <xs:simpleType>
50
+ <xs:restriction base="xs:NMTOKEN">
51
+ <xs:enumeration value="stop"/>
52
+ <xs:enumeration value="continue"/>
53
+ </xs:restriction>
54
+ </xs:simpleType>
55
+ </xs:attribute>
56
+ <xs:attribute name="defaultAction" default="perform">
57
+ <xs:simpleType>
58
+ <xs:restriction base="xs:NMTOKEN">
59
+ <xs:enumeration value="cancel"/>
60
+ <xs:enumeration value="perform"/>
61
+ </xs:restriction>
62
+ </xs:simpleType>
63
+ </xs:attribute>
64
+ <xs:attribute name="id" type="xs:ID"/>
65
+ </xs:attributeGroup>
66
+
67
+ <xs:complexType name="listener.type">
68
+ <xs:attributeGroup ref="listener.attlist"/>
69
+ </xs:complexType>
70
+
71
+ <xs:element name="listener" type="listener.type"/>
72
+
73
+ </xs:schema>
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="http://www.w3.org/2001/xml-events"
4
+ xmlns="http://www.w3.org/2001/xml-events"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
8
+ http://www.w3.org/2001/XMLSchema.xsd"
9
+ elementFormDefault="unqualified"
10
+ blockDefault="#all"
11
+ finalDefault="#all"
12
+ attributeFormDefault="unqualified">
13
+
14
+ <xs:annotation>
15
+ <xs:documentation>
16
+ This is the XML Schema for XML Events
17
+
18
+ URI: http://www.w3.org/MarkUp/SCHEMA/xml-events-2.xsd
19
+ $Id: xml-events-2.xsd,v 1.2 2008/06/25 14:36:17 smccarro Exp $
20
+ </xs:documentation>
21
+ <xs:documentation source="xml-events-copyright-2.xsd"/>
22
+ </xs:annotation>
23
+
24
+ <xs:annotation>
25
+ <xs:documentation>
26
+ XML Events element listener
27
+
28
+ This module defines the listener element for XML Events.
29
+ This element can be used to define event listeners. This
30
+ module relies upon the XmlEvents.attlist attribute group
31
+ defined in xml-events-attribs-2.xsd.
32
+ </xs:documentation>
33
+ </xs:annotation>
34
+
35
+ <xs:attributeGroup name="listener.attlist">
36
+ <xs:attribute name="event" use="required" type="xs:NMTOKEN"/>
37
+ <xs:attribute name="observer" type="xs:IDREF"/>
38
+ <xs:attribute name="target" type="xs:IDREF"/>
39
+ <xs:attribute name="handler" type="xs:anyURI"/>
40
+ <xs:attribute name="phase" default="default">
41
+ <xs:simpleType>
42
+ <xs:restriction base="xs:NMTOKEN">
43
+ <xs:enumeration value="capture"/>
44
+ <xs:enumeration value="default"/>
45
+ </xs:restriction>
46
+ </xs:simpleType>
47
+ </xs:attribute>
48
+ <xs:attribute name="propagate" default="continue">
49
+ <xs:simpleType>
50
+ <xs:restriction base="xs:NMTOKEN">
51
+ <xs:enumeration value="stop"/>
52
+ <xs:enumeration value="continue"/>
53
+ </xs:restriction>
54
+ </xs:simpleType>
55
+ </xs:attribute>
56
+ <xs:attribute name="defaultAction" default="perform">
57
+ <xs:simpleType>
58
+ <xs:restriction base="xs:NMTOKEN">
59
+ <xs:enumeration value="cancel"/>
60
+ <xs:enumeration value="perform"/>
61
+ </xs:restriction>
62
+ </xs:simpleType>
63
+ </xs:attribute>
64
+ <xs:attribute name="id" type="xs:ID"/>
65
+ </xs:attributeGroup>
66
+
67
+ <xs:complexType name="listener.type">
68
+ <xs:attributeGroup ref="listener.attlist"/>
69
+ </xs:complexType>
70
+
71
+ <xs:element name="listener" type="listener.type"/>
72
+
73
+ </xs:schema>
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="http://www.w3.org/2001/xml-events"
4
+ xmlns:ev="http://www.w3.org/2001/xml-events"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
8
+ http://www.w3.org/2001/XMLSchema.xsd"
9
+ elementFormDefault="unqualified"
10
+ blockDefault="#all"
11
+ finalDefault="#all"
12
+ attributeFormDefault="unqualified">
13
+
14
+ <xs:annotation>
15
+ <xs:documentation>
16
+ This is the XML Schema for XML Events global attributes
17
+
18
+ URI: http://www.w3.org/MarkUp/SCHEMA/xml-events-attribs-1.xsd
19
+ $Id: xml-events-attribs-1.xsd,v 1.7 2004/11/22 17:09:15 ahby Exp $
20
+ </xs:documentation>
21
+ <xs:documentation source="xml-events-copyright-1.xsd"/>
22
+ </xs:annotation>
23
+
24
+ <xs:annotation>
25
+ <xs:documentation>
26
+ XML Event Attributes
27
+
28
+ These "global" event attributes are defined in "Attaching
29
+ Attributes Directly to the Observer Element" of the XML
30
+ Events specification.
31
+ </xs:documentation>
32
+ </xs:annotation>
33
+
34
+ <xs:attribute name="event" type="xs:NMTOKEN"/>
35
+ <xs:attribute name="observer" type="xs:IDREF"/>
36
+ <xs:attribute name="target" type="xs:IDREF"/>
37
+ <xs:attribute name="handler" type="xs:anyURI"/>
38
+ <xs:attribute name="phase" default="default">
39
+ <xs:simpleType>
40
+ <xs:restriction base="xs:NMTOKEN">
41
+ <xs:enumeration value="capture"/>
42
+ <xs:enumeration value="default"/>
43
+ </xs:restriction>
44
+ </xs:simpleType>
45
+ </xs:attribute>
46
+ <xs:attribute name="propagate" default="continue">
47
+ <xs:simpleType>
48
+ <xs:restriction base="xs:NMTOKEN">
49
+ <xs:enumeration value="stop"/>
50
+ <xs:enumeration value="continue"/>
51
+ </xs:restriction>
52
+ </xs:simpleType>
53
+ </xs:attribute>
54
+ <xs:attribute name="defaultAction" default="perform">
55
+ <xs:simpleType>
56
+ <xs:restriction base="xs:NMTOKEN">
57
+ <xs:enumeration value="cancel"/>
58
+ <xs:enumeration value="perform"/>
59
+ </xs:restriction>
60
+ </xs:simpleType>
61
+ </xs:attribute>
62
+
63
+ <xs:attributeGroup name="XmlEvents.attlist">
64
+ <xs:attribute ref="ev:event"/>
65
+ <xs:attribute ref="ev:observer"/>
66
+ <xs:attribute ref="ev:target"/>
67
+ <xs:attribute ref="ev:handler"/>
68
+ <xs:attribute ref="ev:phase"/>
69
+ <xs:attribute ref="ev:propagate"/>
70
+ <xs:attribute ref="ev:defaultAction"/>
71
+ </xs:attributeGroup>
72
+
73
+ </xs:schema>
@@ -0,0 +1,75 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="http://www.w3.org/2001/xml-events"
4
+ xmlns:ev="http://www.w3.org/2001/xml-events"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema
8
+ http://www.w3.org/2001/XMLSchema.xsd"
9
+ elementFormDefault="unqualified"
10
+ blockDefault="#all"
11
+ finalDefault="#all"
12
+ attributeFormDefault="unqualified">
13
+
14
+ <xs:annotation>
15
+ <xs:documentation>
16
+ This is the XML Schema for XML Events global attributes
17
+
18
+ URI: http://www.w3.org/MarkUp/SCHEMA/xml-events-attribs-2.xsd
19
+ $Id: xml-events-attribs-2.xsd,v 1.2 2008/06/25 14:36:21 smccarro Exp $
20
+ </xs:documentation>
21
+ <xs:documentation source="xml-events-copyright-2.xsd"/>
22
+ </xs:annotation>
23
+
24
+ <xs:annotation>
25
+ <xs:documentation>
26
+ XML Event Attributes
27
+
28
+ These "global" event attributes are defined in "Attaching
29
+ Attributes Directly to the Observer Element" of the XML
30
+ Events specification.
31
+ </xs:documentation>
32
+ </xs:annotation>
33
+
34
+ <xs:attribute name="event" type="xs:NMTOKEN"/>
35
+ <xs:attribute name="observer" type="xs:IDREF"/>
36
+ <xs:attribute name="targetid" type="xs:IDREF"/>
37
+ <xs:attribute name="handler" type="xs:anyURI"/>
38
+ <xs:attribute name="phase" default="default">
39
+ <xs:simpleType>
40
+ <xs:restriction base="xs:NMTOKEN">
41
+ <xs:enumeration value="bubble"/>
42
+ <xs:enumeration value="capture"/>
43
+ <xs:enumeration value="default"/>
44
+ <xs:enumeration value="target"/>
45
+ </xs:restriction>
46
+ </xs:simpleType>
47
+ </xs:attribute>
48
+ <xs:attribute name="propagate" default="continue">
49
+ <xs:simpleType>
50
+ <xs:restriction base="xs:NMTOKEN">
51
+ <xs:enumeration value="stop"/>
52
+ <xs:enumeration value="continue"/>
53
+ </xs:restriction>
54
+ </xs:simpleType>
55
+ </xs:attribute>
56
+ <xs:attribute name="defaultAction" default="perform">
57
+ <xs:simpleType>
58
+ <xs:restriction base="xs:NMTOKEN">
59
+ <xs:enumeration value="cancel"/>
60
+ <xs:enumeration value="perform"/>
61
+ </xs:restriction>
62
+ </xs:simpleType>
63
+ </xs:attribute>
64
+
65
+ <xs:attributeGroup name="XmlEvents.attlist">
66
+ <xs:attribute ref="ev:event"/>
67
+ <xs:attribute ref="ev:observer"/>
68
+ <xs:attribute ref="ev:targetid"/>
69
+ <xs:attribute ref="ev:handler"/>
70
+ <xs:attribute ref="ev:phase"/>
71
+ <xs:attribute ref="ev:propagate"/>
72
+ <xs:attribute ref="ev:defaultAction"/>
73
+ </xs:attributeGroup>
74
+
75
+ </xs:schema>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="http://www.w3.org/2001/xml-events"
4
+ xmlns="http://www.w3.org/2001/xml-events"
5
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
+ elementFormDefault="unqualified"
7
+ blockDefault="#all"
8
+ finalDefault="#all"
9
+ attributeFormDefault="unqualified">
10
+
11
+ <xs:annotation>
12
+ <xs:documentation>
13
+ This is XML Events, a generalized event model for XML-based
14
+ markup languages.
15
+
16
+ Copyright 2001-2003 World Wide Web Consortium
17
+ (Massachusetts Institute of Technology, European Research
18
+ Consortium for Informatics and Mathematics, Keio University).
19
+ All Rights Reserved.
20
+
21
+ Permission to use, copy, modify and distribute the
22
+ XML Events Schema modules and their accompanying xs:documentation
23
+ for any purpose and without fee is hereby granted in perpetuity,
24
+ provided that the above copyright notice and this paragraph appear
25
+ in all copies.
26
+
27
+ The copyright holders make no representation about the suitability of
28
+ these XML Schema modules for any purpose.
29
+
30
+ They are provided "as is" without expressed or implied warranty.
31
+ </xs:documentation>
32
+ </xs:annotation>
33
+
34
+ </xs:schema>