rexslt 0.5.11 → 0.5.12

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: 7b5a178a90b731f56d261d03532b4871580ea9ec
4
- data.tar.gz: 1d880d68ab9dfaa3289ef679e9998309eb96b6c0
3
+ metadata.gz: 692af4dea356de7239c406eb323d954dca996218
4
+ data.tar.gz: b549f3092fbfa174b2e25041afe3cb7d05210b3d
5
5
  SHA512:
6
- metadata.gz: 8d7605ab12d04e030c3de3e7f4e1deb93107e1da38e6fe3dbce8eae03f7e7e478d31230f134b0c34fcb809f9f8449b1d7acebc0a0cde23c4e5fb4787736c1c76
7
- data.tar.gz: 4406078c37739114adcad6b7072fb6a5bc6f3a2c1e2c4f3299b377b75b562a5a6036e134022794b12c83d08bad5aa2902d82206e77ed30cdcd108c96c5debdc3
6
+ metadata.gz: a47773c8f5ebe185148a60f40cb10d359a13aa7c40fb3a9d9015e80a0fd8ddcc548e721cbfec97ca7d156373dd13f88bc72c05294dcb95f918a9e95d5ff86e76
7
+ data.tar.gz: 7d2ca768f79b923bc80788984225086e80ff3b7442a3706ea0608001cfb84ea41dc412a5d269b81551349ccd2110f0d32fc1f0b220d0d59a710ffda248bdd83b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -162,10 +162,12 @@ class Rexslt
162
162
  end
163
163
 
164
164
  def xsl_attribute(element, x, doc_element, indent, i)
165
-
165
+
166
166
  name = x.attributes[:name]
167
167
  value = x.value
168
- doc_element.add_attribute name, value
168
+
169
+ value = value_of(x.element('xsl:value-of'), element) unless value
170
+ doc_element.add_attribute(name, value)
169
171
  end
170
172
 
171
173
  def xsl_choose(element, x, doc_element, indent, i)
@@ -437,6 +439,22 @@ class Rexslt
437
439
 
438
440
  end
439
441
 
442
+ def value_of(x, element)
443
+
444
+ field = x.attributes[:select]
445
+
446
+ o = case field
447
+ when '.'
448
+ element.value
449
+ when /^\$/
450
+ @param[field[/^\$(.*)/,1]]
451
+ else
452
+ ee = element.text(field)
453
+ ee
454
+ end
455
+
456
+ end
457
+
440
458
  def xsl_output()
441
459
 
442
460
  end
@@ -457,21 +475,11 @@ class Rexslt
457
475
 
458
476
  def xsl_value_of(element, x, doc_element, indent, i)
459
477
 
460
- field = x.attributes[:select]
461
-
462
- o = case field
463
- when '.'
464
- element.value
465
- when /^\$/
466
- @param[field[/^\$(.*)/,1]]
467
- else
468
- ee = element.text(field)
469
- ee
470
- end
478
+ s = value_of(x, element)
471
479
 
472
480
  #jr030316 doc_element.add_element o.to_s #unless o.to_s.empty?
473
481
 
474
- doc_element.add_text o
482
+ doc_element.add_text s
475
483
 
476
484
  doc_element
477
485
  end
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.5.11
4
+ version: 0.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  38j2+6ULVWalsVein3whb7qB6IOvxoSqjz6n7jAKFGHovoXPUqpv5y5Yor23rTrn
32
32
  0YwisIc3UkL30g==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-04-02 00:00:00.000000000 Z
34
+ date: 2016-04-03 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rxfhelper
@@ -62,7 +62,7 @@ dependencies:
62
62
  version: '1.3'
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 1.3.15
65
+ version: 1.3.16
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.15
75
+ version: 1.3.16
76
76
  description:
77
77
  email: james@r0bertson.co.uk
78
78
  executables: []
metadata.gz.sig CHANGED
Binary file