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

RE: [F&O] 15.2.1.2 Examples (fn:deep-equal)

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Sat, 22 Nov 2003 23:22:04 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD2D0@daemsg02.software-ag.de>
To: Dimitre Novatchev <dnovatchev@yahoo.com>, public-qt-comments@w3.org
> The examples are:
> 
> fn:deep-equal($item1, $item2) returns false.
> 
> fn:deep-equal($item1, $item1) returns true .
> 
> fn:deep-equal(($item1, $item2), 2.3E0) returns false.
> 
> It is not clear why the result of the first example must be 
> false as the variables $item1 and $item2 are not defined.
> 

Sadly, it is also true that the second example isn't guaranteed to be true
for all possible inputs: for example, an xs:duration value is not deep-equal
to itself.

Michael Kay
Received on Saturday, 22 November 2003 17:23:40 UTC

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