xml_schema 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/Gemfile.lock +1 -1
- data/lib/xml_schema/version.rb +1 -1
- data/lib/xml_schema.rb +2 -1
- metadata +1 -1
data/ChangeLog
CHANGED
data/Gemfile.lock
CHANGED
data/lib/xml_schema/version.rb
CHANGED
data/lib/xml_schema.rb
CHANGED
@@ -41,7 +41,8 @@ module XmlSchema
|
|
41
41
|
datatype =
|
42
42
|
if literal_type
|
43
43
|
ns, l_type = literal_type.delete("<>").split('#')
|
44
|
-
|
44
|
+
# TODO: somehow use a better comparison of URIs which ignores "/" at the end?
|
45
|
+
if URI(ns.sub(/\/*$/, "/")) == NS::XMLSchema.uri && TYPES.include?(l_type)
|
45
46
|
l_type
|
46
47
|
else
|
47
48
|
raise "Incompatible datatype URI! (#{ns})"
|