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

> 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