From: <Pie...@re...> - 2011-08-08 12:34:14
|
Hi, Guido Serra <gui...@tx...> a écrit sur 08/08/2011 14:02:09 : > The result shall be : > > <node>two</node> > > which is the compute of the difference between the 2 sequences > > http://www.w3.org/TR/xpath-functions/#func-except On the XQuery sandbox (http://demo.exist-db.org/exist/sandbox/sandbox.xql ), this code : declare variable $item1 := <node>one</node>; declare variable $item2 := <node>two</node>; declare variable $item3 := <node>three</node>; declare variable $s1 := ($item1, $item2, $item3); declare variable $s2 := ($item1, $item3); $s1 except $s2 ... returns a correct result, i.e. <node>two</node>. Cheers, p.b. |