RE: (ESED-813) XOR operator in XPath


However, for a user of XPath, I think providing the operator that directly
translates to the concept a user might be looking for, rather than a
'logically equivalent' operator, is a nice thing to do. It seems a simple
enough translation, but if I can spare my business users of XPath from
needing to make one more small leap in their boolean algebra cogitations,
then I'd be happy to do so. 



Well, you can always wrap it in a function  


declare function f:xor($a as xs:boolean, $b as xs:boolean)  as xs:boolean {

    $a != $b




Michael Kay 

Received on Wednesday, 21 April 2010 06:47:31 UTC