dynarex 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +2 -8
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
@@ -9,7 +9,7 @@ require 'line-tree'
|
|
9
9
|
require 'rexle'
|
10
10
|
require 'rexle-builder'
|
11
11
|
require 'rexslt'
|
12
|
-
require '
|
12
|
+
require 'dynarex-xslt'
|
13
13
|
|
14
14
|
class Dynarex
|
15
15
|
|
@@ -26,7 +26,6 @@ class Dynarex
|
|
26
26
|
def initialize(location=nil)
|
27
27
|
@delimiter = ' '
|
28
28
|
open(location) if location
|
29
|
-
@dynarex_xslt = RecordxXSLT.new
|
30
29
|
end
|
31
30
|
|
32
31
|
def add(x)
|
@@ -229,18 +228,13 @@ EOF
|
|
229
228
|
end
|
230
229
|
|
231
230
|
def to_xslt()
|
232
|
-
|
233
|
-
@dynarex_xslt.to_xslt
|
231
|
+
DynarexXSLT.new(schema: @schema, xslt_schema: @xslt_schema).to_xslt
|
234
232
|
end
|
235
233
|
|
236
234
|
def xpath(x)
|
237
235
|
@doc.root.xpath x
|
238
236
|
end
|
239
237
|
|
240
|
-
def xslt_schema=(s)
|
241
|
-
@dynarex_xslt.xslt_schema = s
|
242
|
-
self
|
243
|
-
end
|
244
238
|
|
245
239
|
private
|
246
240
|
|