dynarex-xslt 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/dynarex-xslt.rb +3 -2
  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][0]) do
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
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynarex-xslt
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson