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