@@ -38,7 +38,8 @@ class Writer
38
38
- if expanded_type.start_with?('_:')
39
39
- haml_tag(get_qname(RDF.type), "rdf:nodeID" => expanded_type[2..-1])
40
40
-else
41
- - haml_tag(get_qname(RDF.type), "rdf:resource" => expanded_type)
41
+ - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
42
+ - haml_tag(get_qname(RDF.type), "", "rdf:resource" => expanded_type)
42
43
- predicates.each do |p|
43
44
= yield(p)
44
45
) ,
@@ -59,9 +60,11 @@ class Writer
59
60
- haml_tag(property, :"<", "xml:lang" => object.language, "rdf:datatype" => (object.datatype unless object.plain?)) do
60
61
= object.value.to_s.encode(xml: :text)
61
62
- elsif object.node?
62
- - haml_tag(property, :"/", "rdf:nodeID" => object.id)
63
+ - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
64
+ - haml_tag(property, "", "rdf:nodeID" => object.id)
63
65
- else
64
- - haml_tag(property, :"/", "rdf:resource" => relativize(object))
66
+ - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
67
+ - haml_tag(property, "", "rdf:resource" => relativize(object))
65
68
) ,
66
69
67
70
# Outpust for a list
@@ -75,9 +78,11 @@ class Writer
75
78
- if recurse && res = yield(object)
76
79
= res
77
80
- elsif object.node?
78
- - haml_tag(get_qname(RDF.Description), :"/", "rdf:nodeID" => (object.id if ref_count(object) > 1))
81
+ - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
82
+ - haml_tag(get_qname(RDF.Description), "", "rdf:nodeID" => (object.id if ref_count(object) > 1))
79
83
- else
80
- - haml_tag(get_qname(RDF.Description), :"/", "rdf:about" => relativize(object))
84
+ - # FIXME: closing tag forces close tag, as :/ is not honored in 5.0.1
85
+ - haml_tag(get_qname(RDF.Description), "", "rdf:about" => relativize(object))
81
86
) ,
82
87
}
83
88
HAML_TEMPLATES = { base : BASE_HAML }
0 commit comments