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:


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


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:


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

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:




Jeni Tennison
Received on Wednesday, 21 May 2003 10:03:58 UTC

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