middleman-xmlvalidator 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,7 @@ module Middleman
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.valid(document_path, schema_path)
|
61
|
-
schema = Nokogiri::XML::Schema(File.read(schema_path))
|
61
|
+
schema = Nokogiri::XML::Schema(File.read(File.join(File.dirname(File.expand_path(__FILE__)), "./" + schema_path)))
|
62
62
|
document = Nokogiri::XML(File.read(document_path))
|
63
63
|
schema.valid?(document)
|
64
64
|
end
|