W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2005

RE: not operator in XQuery?

From: Jonathan Robie <Jonathan.Robie@datadirect.com>
Date: Wed, 6 Apr 2005 16:02:18 -0400
Message-ID: <80F978BD1604FD46B53468205BCB779D05E4CC@MAIL04.americas.progress.com>
To: "Frank Yung-Fong Tang" <franktang@gmail.com>, <www-ql@w3.org>
Hi Frank,

This is a perfectly valid XQuery:

let $a := <a>4</a>
where not ($a > 3 and $a < 5)
return $a


-----Original Message-----
From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf Of Frank Yung-Fong Tang
Sent: Wednesday, April 06, 2005 3:53 PM
To: www-ql@w3.org
Subject: not operator in XQuery?

Dear XQuery expert:

Can some one explain to me how can I do logical 'not' in XQuery WHERE
clause now?
I take a look at http://www.w3.org/TR/xquery

The syntax seems allow me to do
let $a := <a>4</a>
where $a > 3 and $a < 5
return $a

I cannot find a logical "not" operator there. So it seems not allow me to do

let $a := <a>4</a>
where not ($a > 3 and $a < 5)
return $a

Is right? Why?
Frank Yung-Fong Tang
Šýšţém Årçĥîţéçţ

Received on Wednesday, 6 April 2005 20:02:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:43 UTC