dynarex-xslt 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex-xslt.rb +2 -1
- metadata +1 -1
data/lib/dynarex-xslt.rb
CHANGED
@@ -41,7 +41,8 @@ class DynarexXSLT
|
|
41
41
|
end
|
42
42
|
|
43
43
|
xml.xsl_template(match: a[0][0] + '/summary') do
|
44
|
-
a[0][1][1]
|
44
|
+
summary_fields = a[0][1][1] || []
|
45
|
+
summary_fields.each do |element, field|
|
45
46
|
xml.send (element.strip).to_sym do
|
46
47
|
xml.xsl_value_of(select: field)
|
47
48
|
end
|