Re: [j-nsp] understanding the root container element of node-set in SLAX

2018-02-05 Thread Martin T
On Fri, Feb 2, 2018 at 9:53 PM, Phil Shafer wrote: > Martin T writes: >>for-each ($results/abc) { >> name(.); >>} >> >>..then "abc" is printed while I would expect "klm". Is this RTF >>container-element also named "abc"? However, for example, >>"$results/abc/abc" does not match anything. > > "

Re: [j-nsp] understanding the root container element of node-set in SLAX

2018-02-02 Thread Phil Shafer
Martin T writes: >for-each ($results/abc) { > name(.); >} > >..then "abc" is printed while I would expect "klm". Is this RTF >container-element also named "abc"? However, for example, >"$results/abc/abc" does not match anything. "for-each" whiffles thru the list of elements that have the name

[j-nsp] understanding the root container element of node-set in SLAX

2018-02-02 Thread Martin T
Hi! Let's say that I define a simple node-set in op script: var $results := { { { "foo"; } } } When I print the $results variable in debugger, then I can see that its type is "[node-set] (1) rtf-doc".: (sdb) print $results [node-set] (1) rtf-doc fo