validate-website 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/README +15 -4
  2. data/Rakefile +6 -4
  3. data/bin/validate-website +33 -36
  4. data/lib/colorful_messages.rb +7 -10
  5. data/lib/validator.rb +37 -0
  6. data/lib/xhtml/xframes-1.xsd +166 -0
  7. data/lib/xhtml/xhtml-access-1.xsd +43 -0
  8. data/lib/xhtml/xhtml-applet-1.xsd +66 -0
  9. data/lib/xhtml/xhtml-attribs-1.xsd +67 -0
  10. data/lib/xhtml/xhtml-base-1.xsd +31 -0
  11. data/lib/xhtml/xhtml-basic-form-1.xsd +195 -0
  12. data/lib/xhtml/xhtml-basic-table-1.xsd +169 -0
  13. data/lib/xhtml/xhtml-basic10-model-1.xsd +385 -0
  14. data/lib/xhtml/xhtml-basic10-module-redefines-1.xsd +61 -0
  15. data/lib/xhtml/xhtml-basic10-modules-1.xsd +233 -0
  16. data/lib/xhtml/xhtml-basic10.xsd +99 -0
  17. data/lib/xhtml/xhtml-basic11-model-1.xsd +622 -0
  18. data/lib/xhtml/xhtml-basic11-modules-1.xsd +508 -0
  19. data/lib/xhtml/xhtml-basic11.xsd +105 -0
  20. data/lib/xhtml/xhtml-bdo-1.xsd +72 -0
  21. data/lib/xhtml/xhtml-blkphras-1.xsd +155 -0
  22. data/lib/xhtml/xhtml-blkpres-1.xsd +32 -0
  23. data/lib/xhtml/xhtml-blkstruct-1.xsd +44 -0
  24. data/lib/xhtml/xhtml-charent-1.xsd +38 -0
  25. data/lib/xhtml/xhtml-copyright-1.xsd +29 -0
  26. data/lib/xhtml/xhtml-csismap-1.xsd +91 -0
  27. data/lib/xhtml/xhtml-datatypes-1.xsd +177 -0
  28. data/lib/xhtml/xhtml-edit-1.xsd +34 -0
  29. data/lib/xhtml/xhtml-events-1.xsd +130 -0
  30. data/lib/xhtml/xhtml-form-1.xsd +321 -0
  31. data/lib/xhtml/xhtml-frames-1.xsd +113 -0
  32. data/lib/xhtml/xhtml-framework-1.xsd +62 -0
  33. data/lib/xhtml/xhtml-hypertext-1.xsd +47 -0
  34. data/lib/xhtml/xhtml-iframe-1.xsd +68 -0
  35. data/lib/xhtml/xhtml-image-1.xsd +40 -0
  36. data/lib/xhtml/xhtml-inlphras-1.xsd +158 -0
  37. data/lib/xhtml/xhtml-inlpres-1.xsd +34 -0
  38. data/lib/xhtml/xhtml-inlstruct-1.xsd +45 -0
  39. data/lib/xhtml/xhtml-inlstyle-1.xsd +22 -0
  40. data/lib/xhtml/xhtml-inputmode-1.xsd +35 -0
  41. data/lib/xhtml/xhtml-lat1.ent +196 -0
  42. data/lib/xhtml/xhtml-legacy-1.xsd +97 -0
  43. data/lib/xhtml/xhtml-link-1.xsd +45 -0
  44. data/lib/xhtml/xhtml-list-1.xsd +94 -0
  45. data/lib/xhtml/xhtml-meta-1.xsd +54 -0
  46. data/lib/xhtml/xhtml-metaAttributes-1.xsd +39 -0
  47. data/lib/xhtml/xhtml-misc-1.xsd +441 -0
  48. data/lib/xhtml/xhtml-nameident-1.xsd +63 -0
  49. data/lib/xhtml/xhtml-notations-1.xsd +69 -0
  50. data/lib/xhtml/xhtml-object-1.xsd +71 -0
  51. data/lib/xhtml/xhtml-param-1.xsd +46 -0
  52. data/lib/xhtml/xhtml-pres-1.xsd +46 -0
  53. data/lib/xhtml/xhtml-print-1.xsd +85 -0
  54. data/lib/xhtml/xhtml-print-model-1.xsd +604 -0
  55. data/lib/xhtml/xhtml-print-modules-1.xsd +422 -0
  56. data/lib/xhtml/xhtml-rdfa-1.dtd +438 -0
  57. data/lib/xhtml/xhtml-rdfa-1.xsd +116 -0
  58. data/lib/xhtml/xhtml-rdfa-model-1.xsd +461 -0
  59. data/lib/xhtml/xhtml-rdfa-modules-1.xsd +548 -0
  60. data/lib/xhtml/xhtml-ruby-1.xsd +170 -0
  61. data/lib/xhtml/xhtml-ruby-basic-1.xsd +84 -0
  62. data/lib/xhtml/xhtml-script-1.xsd +65 -0
  63. data/lib/xhtml/xhtml-special.ent +80 -0
  64. data/lib/xhtml/xhtml-ssismap-1.xsd +38 -0
  65. data/lib/xhtml/xhtml-struct-1.xsd +85 -0
  66. data/lib/xhtml/xhtml-style-1.xsd +47 -0
  67. data/lib/xhtml/xhtml-symbol.ent +237 -0
  68. data/lib/xhtml/xhtml-table-1.xsd +267 -0
  69. data/lib/xhtml/xhtml-target-1.xsd +49 -0
  70. data/lib/xhtml/xhtml-text-1.xsd +62 -0
  71. data/lib/xhtml/xhtml1-frameset.dtd +1235 -0
  72. data/lib/xhtml/xhtml1-frameset.xsd +2847 -0
  73. data/lib/xhtml/xhtml1-strict.dtd +978 -0
  74. data/lib/xhtml/xhtml1-strict.xsd +2211 -0
  75. data/lib/xhtml/xhtml1-transitional.dtd +1201 -0
  76. data/lib/xhtml/xhtml1-transitional.xsd +2755 -0
  77. data/lib/xhtml/xhtml11-model-1.xsd +715 -0
  78. data/lib/xhtml/xhtml11-module-redefines-1.xsd +335 -0
  79. data/lib/xhtml/xhtml11-modules-1.xsd +605 -0
  80. data/lib/xhtml/xhtml11.xsd +107 -0
  81. data/lib/xhtml/xhtml2.xsd +21 -0
  82. data/lib/xhtml/xml-events-1.xsd +73 -0
  83. data/lib/xhtml/xml-events-2.xsd +73 -0
  84. data/lib/xhtml/xml-events-attribs-1.xsd +73 -0
  85. data/lib/xhtml/xml-events-attribs-2.xsd +75 -0
  86. data/lib/xhtml/xml-events-copyright-1.xsd +34 -0
  87. data/lib/xhtml/xml-events-copyright-2.xsd +34 -0
  88. data/lib/xhtml/xml-handlers-1.xsd +136 -0
  89. data/lib/xhtml/xml-handlers-2.xsd +98 -0
  90. data/lib/xhtml/xml-script-1.xsd +38 -0
  91. data/lib/xhtml/xml.xsd +286 -0
  92. metadata +114 -8
  93. data/lib/spkspider.rb +0 -147
@@ -0,0 +1,97 @@
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 Module for HTML Legacy Markup
12
+
13
+ font, basefont, center, s, strike, u,
14
+ dir, menu, isindex
15
+ (plus additional datatypes and legacy attributes)
16
+
17
+ This optional module declares additional markup for simple
18
+ presentation-related markup based on features found in the
19
+ HTML 4 Transitional and Frameset DTDs.
20
+
21
+ The legacy module also include frames module, iframe module
22
+ and target module. (Note: This module expects find the schema files
23
+ of that declare these module)
24
+
25
+ Elements/Attributes defined in frame, iframe and targer modules are
26
+
27
+ * frameset, frame, noframes, att:target, iframe
28
+
29
+ $Id: xhtml-legacy-1.xsd,v 1.2 2005/09/26 22:54:53 ahby Exp $
30
+ </xs:documentation>
31
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
32
+ <xs:documentation
33
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_legacymodule"/>
34
+ <xs:documentation
35
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_framesmodule"/>
36
+ <xs:documentation
37
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_targetmodule"/>
38
+ <xs:documentation
39
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_iframemodule"/>
40
+ </xs:annotation>
41
+
42
+ <xs:include schemaLocation="xhtml-misc-1.xsd">
43
+ <xs:annotation>
44
+ <xs:documentation>
45
+ Miscellaneous module
46
+ Attributes defined here:
47
+
48
+ * font, basefont, center, s, strike, u, dir, menu, isindex
49
+ (plus additional datatypes and attributes)
50
+
51
+ </xs:documentation>
52
+ </xs:annotation>
53
+ </xs:include>
54
+
55
+ <xs:include schemaLocation="xhtml-frames-1.xsd">
56
+ <xs:annotation>
57
+ <xs:documentation>
58
+ Frames module
59
+
60
+ Elements defined here:
61
+
62
+ * frameset, frame, noframes
63
+ </xs:documentation>
64
+ <xs:documentation
65
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_framesmodule"/>
66
+ </xs:annotation>
67
+ </xs:include>
68
+
69
+ <xs:include schemaLocation="xhtml-target-1.xsd">
70
+ <xs:annotation>
71
+ <xs:documentation>
72
+ Target module
73
+
74
+ Attributes defined here:
75
+
76
+ * target
77
+ </xs:documentation>
78
+ <xs:documentation
79
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_targetmodule"/>
80
+ </xs:annotation>
81
+ </xs:include>
82
+
83
+ <xs:include schemaLocation="xhtml-iframe-1.xsd">
84
+ <xs:annotation>
85
+ <xs:documentation>
86
+ Iframe module
87
+
88
+ Elements defined here:
89
+
90
+ * iframe
91
+ </xs:documentation>
92
+ <xs:documentation
93
+ source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_iframemodule"/>
94
+ </xs:annotation>
95
+ </xs:include>
96
+
97
+ </xs:schema>
@@ -0,0 +1,45 @@
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 Link Element module for XHTML
12
+ $Id: xhtml-link-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
+ <xs:annotation>
17
+ <xs:documentation>
18
+ Link element
19
+
20
+ * link
21
+
22
+ This module declares the link element type and its attributes,
23
+ which could (in principle) be used to define document-level links
24
+ to external resources.
25
+ </xs:documentation>
26
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_linkmodule"/>
27
+ </xs:annotation>
28
+ <xs:attributeGroup name="xhtml.link.attlist">
29
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
30
+ <xs:attribute name="charset" type="xh11d:Charset"/>
31
+ <xs:attribute name="href" type="xh11d:URI"/>
32
+ <xs:attribute name="hreflang" type="xh11d:LanguageCode"/>
33
+ <xs:attribute name="type" type="xh11d:ContentType"/>
34
+ <xs:attribute name="rel" type="xh11d:LinkTypes"/>
35
+ <xs:attribute name="rev" type="xh11d:LinkTypes"/>
36
+ <xs:attribute name="media" type="xh11d:MediaDesc"/>
37
+ </xs:attributeGroup>
38
+ <xs:group name="xhtml.link.content">
39
+ <xs:sequence/>
40
+ </xs:group>
41
+ <xs:complexType name="xhtml.link.type">
42
+ <xs:group ref="xhtml.link.content"/>
43
+ <xs:attributeGroup ref="xhtml.link.attlist"/>
44
+ </xs:complexType>
45
+ </xs:schema>
@@ -0,0 +1,94 @@
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
+ <xs:annotation>
5
+ <xs:documentation>
6
+ List Module
7
+ This is the XML Schema Lists module for XHTML
8
+ List Module Elements
9
+
10
+ * dl, dt, dd, ol, ul, li
11
+
12
+ This module declares the list-oriented element types
13
+ and their attributes.
14
+ $Id: xhtml-list-1.xsd,v 1.2 2005/09/26 22:54:53 ahby Exp $
15
+ </xs:documentation>
16
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
17
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_listmodule"/>
18
+ </xs:annotation>
19
+ <xs:attributeGroup name="xhtml.dt.attlist">
20
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
21
+ </xs:attributeGroup>
22
+ <xs:group name="xhtml.dt.content">
23
+ <xs:sequence>
24
+ <xs:group ref="xhtml.Inline.mix" minOccurs="0" maxOccurs="unbounded"/>
25
+ </xs:sequence>
26
+ </xs:group>
27
+ <xs:complexType name="xhtml.dt.type" mixed="true">
28
+ <xs:group ref="xhtml.dt.content"/>
29
+ <xs:attributeGroup ref="xhtml.dt.attlist"/>
30
+ </xs:complexType>
31
+ <xs:attributeGroup name="xhtml.dd.attlist">
32
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
33
+ </xs:attributeGroup>
34
+ <xs:group name="xhtml.dd.content">
35
+ <xs:sequence>
36
+ <xs:group ref="xhtml.Flow.mix" minOccurs="0" maxOccurs="unbounded"/>
37
+ </xs:sequence>
38
+ </xs:group>
39
+ <xs:complexType name="xhtml.dd.type" mixed="true">
40
+ <xs:group ref="xhtml.dd.content"/>
41
+ <xs:attributeGroup ref="xhtml.dd.attlist"/>
42
+ </xs:complexType>
43
+ <xs:attributeGroup name="xhtml.dl.attlist">
44
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
45
+ </xs:attributeGroup>
46
+ <xs:group name="xhtml.dl.content">
47
+ <xs:sequence>
48
+ <xs:choice maxOccurs="unbounded">
49
+ <xs:element name="dt" type="xhtml.dt.type"/>
50
+ <xs:element name="dd" type="xhtml.dd.type"/>
51
+ </xs:choice>
52
+ </xs:sequence>
53
+ </xs:group>
54
+ <xs:complexType name="xhtml.dl.type">
55
+ <xs:group ref="xhtml.dl.content"/>
56
+ <xs:attributeGroup ref="xhtml.dl.attlist"/>
57
+ </xs:complexType>
58
+ <xs:attributeGroup name="xhtml.li.attlist">
59
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
60
+ </xs:attributeGroup>
61
+ <xs:group name="xhtml.li.content">
62
+ <xs:sequence>
63
+ <xs:group ref="xhtml.Flow.mix" minOccurs="0" maxOccurs="unbounded"/>
64
+ </xs:sequence>
65
+ </xs:group>
66
+ <xs:complexType name="xhtml.li.type" mixed="true">
67
+ <xs:group ref="xhtml.li.content"/>
68
+ <xs:attributeGroup ref="xhtml.li.attlist"/>
69
+ </xs:complexType>
70
+ <xs:attributeGroup name="xhtml.ol.attlist">
71
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
72
+ </xs:attributeGroup>
73
+ <xs:group name="xhtml.ol.content">
74
+ <xs:sequence>
75
+ <xs:element name="li" type="xhtml.li.type" maxOccurs="unbounded"/>
76
+ </xs:sequence>
77
+ </xs:group>
78
+ <xs:complexType name="xhtml.ol.type">
79
+ <xs:group ref="xhtml.ol.content"/>
80
+ <xs:attributeGroup ref="xhtml.ol.attlist"/>
81
+ </xs:complexType>
82
+ <xs:attributeGroup name="xhtml.ul.attlist">
83
+ <xs:attributeGroup ref="xhtml.Common.attrib"/>
84
+ </xs:attributeGroup>
85
+ <xs:group name="xhtml.ul.content">
86
+ <xs:sequence>
87
+ <xs:element name="li" type="xhtml.li.type" maxOccurs="unbounded"/>
88
+ </xs:sequence>
89
+ </xs:group>
90
+ <xs:complexType name="xhtml.ul.type">
91
+ <xs:group ref="xhtml.ul.content"/>
92
+ <xs:attributeGroup ref="xhtml.ul.attlist"/>
93
+ </xs:complexType>
94
+ </xs:schema>
@@ -0,0 +1,54 @@
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 Metainformation module for XHTML
13
+ $Id: xhtml-meta-1.xsd,v 1.3 2008/07/05 04:11:00 ahby Exp $
14
+ </xs:documentation>
15
+ <xs:documentation source="xhtml-copyright-1.xsd"/>
16
+ </xs:annotation>
17
+ <xs:annotation>
18
+ <xs:documentation>
19
+ Meta Information
20
+
21
+ * meta
22
+
23
+ This module declares the meta element type and its attributes,
24
+ used to provide declarative document metainformation.
25
+ </xs:documentation>
26
+ <xs:documentation source="http://www.w3.org/TR/2001/REC-xhtml-modularization-20010410/abstract_modules.html#s_metamodule"/>
27
+ </xs:annotation>
28
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace"
29
+ schemaLocation="http://www.w3.org/2001/xml.xsd">
30
+ <xs:annotation>
31
+ <xs:documentation>
32
+ This import brings in the XML namespace attributes
33
+ The module itself does not provide the schemaLocation
34
+ and expects the driver schema to provide the
35
+ actual SchemaLocation.
36
+ </xs:documentation>
37
+ </xs:annotation>
38
+ </xs:import>
39
+ <xs:attributeGroup name="xhtml.meta.attlist">
40
+ <xs:attributeGroup ref="xhtml.I18n.attrib"/>
41
+ <xs:attribute ref="xml:space"/>
42
+ <xs:attribute name="http-equiv" type="xs:NMTOKEN"/>
43
+ <xs:attribute name="name" type="xs:NMTOKEN"/>
44
+ <xs:attribute name="content" type="xh11d:CDATA" use="required"/>
45
+ <xs:attribute name="scheme" type="xh11d:CDATA"/>
46
+ </xs:attributeGroup>
47
+ <xs:group name="xhtml.meta.content">
48
+ <xs:sequence/>
49
+ </xs:group>
50
+ <xs:complexType name="xhtml.meta.type">
51
+ <xs:group ref="xhtml.meta.content"/>
52
+ <xs:attributeGroup ref="xhtml.meta.attlist"/>
53
+ </xs:complexType>
54
+ </xs:schema>
@@ -0,0 +1,39 @@
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:import namespace="http://www.w3.org/1999/xhtml/datatypes/" schemaLocation="xhtml-datatypes-1.xsd"/>
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ This is the XML Schema Metainformation Attributes module for XHTML
7
+
8
+ $Id: xhtml-metaAttributes-1.xsd,v 1.6 2008/07/05 04:15:30 smccarro Exp $
9
+ </xs:documentation>
10
+ <xs:documentation source="xhtml-rdfa-copyright-1.xsd"/>
11
+ </xs:annotation>
12
+
13
+ <xs:annotation>
14
+ <xs:documentation>
15
+ XHTML Metainformation Attributes
16
+ </xs:documentation>
17
+ </xs:annotation>
18
+
19
+ <xs:attribute name="about" type="xh11d:URIorSafeCURIE"/>
20
+ <xs:attribute name="content" type="xh11d:CDATA"/>
21
+ <xs:attribute name="datatype" type="xh11d:CURIE"/>
22
+ <xs:attribute name="typeof" type="xh11d:CURIEs"/>
23
+ <xs:attribute name="property" type="xh11d:CURIEs"/>
24
+ <xs:attribute name="rel" type="xh11d:CURIEs"/>
25
+ <xs:attribute name="resource" type="xh11d:URIorSafeCURIE"/>
26
+ <xs:attribute name="rev" type="xh11d:CURIEs"/>
27
+
28
+ <xs:attributeGroup name="xhtml.metaAttributes.attrib">
29
+ <xs:attribute name="about"/>
30
+ <xs:attribute name="content"/>
31
+ <xs:attribute name="datatype"/>
32
+ <xs:attribute name="typeof"/>
33
+ <xs:attribute name="property"/>
34
+ <xs:attribute name="rel"/>
35
+ <xs:attribute name="resource"/>
36
+ <xs:attribute name="rev"/>
37
+ </xs:attributeGroup>
38
+
39
+ </xs:schema>