W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

Re: eq operator

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 21 May 2003 15:03:51 +0100
Message-ID: <126-644324560.20030521150351@jenitennison.com>
To: Tobias Reif <tobiasreif@pinkjuice.com>
CC: public-qt-comments@w3.org

Hi Tobi,

> Where can I find the definition of the eq operator?

The eq operator is defined in Section 3.5.1 Value Comparisons in the
XPath 2.0 WD at:

  http://www.w3.org/TR/xpath20/#id-value-comparisons

The way in which eq works for a particular data type is defined in the
F&O WD at:

  http://www.w3.org/TR/xpath-functions

Most data types that you can compare for equality have a op:X-equal()
operator defined in the F&O WD, where X is the name of the data type.
For example, if you want to find out how two dateTimes are compared,
look up op:dateTime-equal() at:

  http://www.w3.org/TR/xpath-functions/#func-dateTime-equal

The exception is that xs:string values are compared using fn:compare()
as defined at:

  http://www.w3.org/TR/xpath-functions/#func-compare
  
A complete list of the possible comparisons and the relevant
operators/functions from the F&O WD are given in Appendix B.2 Operator
Mapping in XPath 2.0 at:

  http://www.w3.org/TR/xpath20/#mapping

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Wednesday, 21 May 2003 10:03:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT