* Fixed union in XPATH [XPATH issues #219](https://github.com/clicon/clixon/issues/219)
This commit is contained in:
parent
783b0a4857
commit
5baf8642ea
8 changed files with 25 additions and 9 deletions
|
|
@ -88,6 +88,9 @@ new "xpath /aaa/bbb"
|
|||
expecteof "$clixon_util_xpath -f $xml -p /aaa/bbb" 0 "" "^0:<bbb x=\"hello\"><ccc>42</ccc></bbb>
|
||||
1:<bbb x=\"bye\"><ccc>99</ccc></bbb>$"
|
||||
|
||||
new "xpath /aaa/bbb union "
|
||||
expecteof "$clixon_util_xpath -f $xml -p aaa/bbb[ccc=42]|aaa/ddd[ccc=22]" 0 "" '^nodeset:0:<bbb x="hello"><ccc>42</ccc></bbb>1:<ddd><ccc>22</ccc></ddd>$'
|
||||
|
||||
new "xpath //bbb"
|
||||
expecteof "$clixon_util_xpath -f $xml -p //bbb" 0 "" "0:<bbb x=\"hello\"><ccc>42</ccc></bbb>
|
||||
1:<bbb x=\"bye\"><ccc>99</ccc></bbb>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue