On Thu, May 31, 2007 at 06:06:21AM -0700, Michael Blakeley wrote:
>  If I understand correctly, op:except isn't suitable for your use-case 
>  because op:except uses node-identity comparison. So this sounds like a job 
>  for fn:deep-equal().

thanks. i've been using fn:deep-equal() to test for equality, but
didn't think of using it like this to test for inequality. very nice. 

>  let $a := document { <test id="a"/> }
>  let $a1 := document { <test id="a"/> }
>  let $b := document { <test id="b"/> }
>  return ($a1, $b)[ not(deep-equal(., $a)) ]
>  => <test id="b"/>
> 
>  http://www.w3.org/TR/xpath-functions/#func-deep-equal

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to