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

Re: not operator in XQuery?

From: Jerome Simeon <simeon@us.ibm.com>
Date: Wed, 6 Apr 2005 16:05:05 -0400
To: Frank Yung-Fong Tang <franktang@gmail.com>
Cc: www-ql@w3.org, www-ql-request@w3.org
Message-ID: <OF18E1AB51.0AEAA094-ON85256FDB.006E3C90-04256FDB.006E54B9@us.ibm.com>

not() is a built-in function. You can find built-in functions in
the following documents:
http://www.w3.org/TR/xpath-functions/

The fn:not() function is probably what you want to use:
http://www.w3.org/TR/xpath-functions/#func-not

- Jerome

www-ql-request@w3.org wrote on 04/06/2005 03:53:27 PM:

> 
> 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:05:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:17 UTC