W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2010

RE: (ESED-813) XOR operator in XPath

From: McDOWALL, Brent <Brent.McDOWALL@suncorp.com.au>
Date: Thu, 22 Apr 2010 15:30:56 +1000
To: 'Michael Kay' <mike@saxonica.com>, "'public-qt-comments@w3.org'" <public-qt-comments@w3.org>
CC: EasySuite Operations <EasySuiteOperations@suncorp.com.au>
Message-ID: <D55420D05B737D47B7EC77AAE0C2B3EA121C78435E@PBNECRMSX4710.int.corp.sun>
Hi Michael,

That wasn't really the response I was after, but thank you for the suggestion and taking the time to look at the matter.



BRENT MCDOWALL  |  System Analyst
EasySuite | Shared Services | BT Corporate Systems
Suncorp | Level 19 Suncorp Plaza | cnr Turbot & Albert Street, Brisbane 4000
ext: 21307 | tel: (07) 3362 1307 | fax: (07) 3362 2966 | ipc: IT042

From: Michael Kay [mailto:mike@saxonica.com]
Sent: Wednesday, 21 April 2010 16:47
To: McDOWALL, Brent; public-qt-comments@w3.org
Cc: EasySuite Operations
Subject: 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

This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system.
If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line.

(image/jpeg attachment: image001.jpg)

Received on Thursday, 22 April 2010 05:58:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:42 UTC