middleman-xmlvalidator 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
@@ -50,8 +50,7 @@ module Middleman
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def self.validate(document_path, schema_path)
|
53
|
-
|
54
|
-
schema = Nokogiri::XML::Schema(File.read(File.join(File.dirname(File.expand_path(__FILE__)), schema_path)))
|
53
|
+
schema = Nokogiri::XML::Schema(File.read("schema/" + schema_path))
|
55
54
|
document = Nokogiri::XML(File.read(document_path))
|
56
55
|
schema.validate(document)
|
57
56
|
end
|