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