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

RE: Missing duration equality

From: Michael Brundage <xquery@comcast.net>
Date: Fri, 4 Jul 2003 11:55:21 -0700
To: "'Ashok Malhotra'" <ashokma@microsoft.com>, <public-qt-comments@w3.org>
Message-ID: <002c01c3425d$d21243f0$6801a8c0@xpider>

Ashok, equality does not require a total ordering.  Only gt/ge/lt/le require
an ordering.

Also you've already defined eq and ne for every other type (or supertype),
including those that are not totally ordered.  (For example, xs:QName and
xs:NOTATION.)  xs:duration is the only type omitted.


Thanks,
michael


-----Original Message-----
From: Ashok Malhotra [mailto:ashokma@microsoft.com] 
Sent: Tuesday, July 01, 2003 9:09 AM
To: Michael Brundage; public-qt-comments@w3.org
Subject: RE: Missing duration equality


That's deliberate!  Equality is not defined on xs:duration because it
has a partial order.  Equality is defined only on the two fully ordered
subtypes of xs:duration -- xdt:dayTimeDuration and
xdt:yearMonthduration.

All the best, Ashok
> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of Michael Brundage
> Sent: Tuesday, July 01, 2003 7:57 AM
> To: public-qt-comments@w3.org
> Subject: Missing duration equality
> 
> 
> May 2, XQuery draft, section B.2 (Operator Mapping)
> 
> The table is missing entries for eq and ne applied to the xs:duration
> type.
> 
> 
> 
> 
> 
> Michael Brundage
> xquery@comcast.net
> 
> Writing as
> Author, "XQuery: The XML Query Language" (Addison-Wesley, to appear
2003)
> Co-author, "Professional XML Databases" (Wrox Press, 2000)
> 
> not as
> Technical Lead
> Common Query Runtime/XML Query Processing
> WebData XML Team
> Microsoft
> 
Received on Friday, 4 July 2003 14:49:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:48 UTC