rexslt 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b8dd32d843b131cc31484f5e948bc279539912f
4
- data.tar.gz: 83d808af7960652ef1e94907eb950f95522cd3ab
3
+ metadata.gz: d6b973b4823311eacb05ede80db2f1399a380714
4
+ data.tar.gz: 348390c05cdcbe54a19bd9b330bbd0f3cea5748b
5
5
  SHA512:
6
- metadata.gz: 80734e550e8a66f18fa6f4867044e1998f3eed693c458827e6ea6f952af591aed20a407950b67d6496f3074e0045bf4010ca47113621689e9c3e80e91f748954
7
- data.tar.gz: a26995174afc0b233201ff2dc9dc3058a39d88d3b9fc16e797182b5a596b93889a79f030a779fee071e7f0f461772338f2e4477e5b81cefbe4df96999655c1e2
6
+ metadata.gz: 2cc571cf1a357a76c1e8a4a5a94dd78b61235a07b625d2bb21b1e778c7697a2a1806d58d333b0c60d5292056fb291ca3a4e5b03fa9318141bba4cdab9a258ca9
7
+ data.tar.gz: 793b84303be053d9888b909169caa82f6b1fe5839dcc047aae92e175ec4e6768da67e15e3335941e8f54daa3fb100aa6cc18ab68a435ed673991448e358174bf
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rexslt.rb CHANGED
@@ -8,7 +8,9 @@ require 'rxfhelper'
8
8
 
9
9
  # modifications:
10
10
 
11
- # 24-Apr-2016: An xsl:attribute value can now be rendered using
11
+ # 24-Apr-2016: The position() function is now supported within an
12
+ # xsl:value-of select attribute
13
+ # An xsl:attribute value can now be rendered using
12
14
  # an xsl:text element
13
15
 
14
16
  module RexPath
@@ -176,7 +178,7 @@ class Rexslt
176
178
  value = x.value
177
179
 
178
180
  e = x.element('xsl:value-of')
179
- value = value_of(e, element) if e
181
+ value = value_of(e, element, i) if e
180
182
 
181
183
  av = x.element('xsl:text')
182
184
  if av then
@@ -443,7 +445,7 @@ class Rexslt
443
445
 
444
446
  end
445
447
 
446
- def value_of(x, element)
448
+ def value_of(x, element, i)
447
449
 
448
450
  field = x.attributes[:select]
449
451
 
@@ -452,6 +454,8 @@ class Rexslt
452
454
  element.value
453
455
  when /^\$/
454
456
  @param[field[/^\$(.*)/,1]]
457
+ when 'position()'
458
+ i.to_s
455
459
  else
456
460
  ee = element.text(field)
457
461
  ee
@@ -479,13 +483,10 @@ class Rexslt
479
483
 
480
484
  def xsl_value_of(element, x, doc_element, indent, i)
481
485
 
482
- s = value_of(x, element)
483
-
484
- #jr030316 doc_element.add_element o.to_s #unless o.to_s.empty?
485
-
486
+ s = value_of(x, element,i)
486
487
  doc_element.add_text s
487
-
488
488
  doc_element
489
+
489
490
  end
490
491
 
491
492
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexslt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -62,7 +62,7 @@ dependencies:
62
62
  version: '1.3'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 1.3.18
65
+ version: 1.3.29
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ dependencies:
72
72
  version: '1.3'
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3.18
75
+ version: 1.3.29
76
76
  description:
77
77
  email: james@r0bertson.co.uk
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file