dynarex-xslt 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex-xslt.rb +3 -2
- metadata +1 -1
data/lib/dynarex-xslt.rb
CHANGED
@@ -49,7 +49,7 @@ class DynarexXSLT
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
xml.xsl_template(match: 'records/' + a[1][0]
|
52
|
+
xml.xsl_template(match: 'records/' + a[1][0]) do
|
53
53
|
xml.send a[1][1][0].to_sym do
|
54
54
|
a[1][1][1].each do |element, field|
|
55
55
|
xml.send element.to_sym do
|
@@ -63,7 +63,8 @@ class DynarexXSLT
|
|
63
63
|
|
64
64
|
Rexle.new(raw_a).xml(pretty: true).gsub('xsl_apply_templates',\
|
65
65
|
'xsl:apply-templates').gsub('xsl_value_of','xsl:value-of').\
|
66
|
-
gsub('xsl_template','xsl:template')
|
66
|
+
gsub('xsl_template','xsl:template').gsub('xsl_','xsl:').\
|
67
|
+
gsub('xmlns_xsl','xmlns:xsl')
|
67
68
|
|
68
69
|
end
|
69
70
|
|