W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

Re: Equality of simple values - Where is my mistake?

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Wed, 30 Oct 2002 11:45:40 +0100 (MET)
To: ht@cogsci.ed.ac.uk;xmlschema-dev@w3.org; (Henry S. Thompson);
Message-ID: <21302.1035974740@www16.gmx.net>

ht writes:

> But that would have the bad effect of treating e.g. (string)5 as equal
> to (decimal)5.0, which is certainly wrong no matter how you look at
> it.

I assumed that for values to be equal they must have either the same type or
the type of one value must be a base type of the type of the other value.
Therefore, clearly

(string)5 != (decimal)5.0 


(anySimpleType)5 = (string)5 = (byte)5 = (decimal)5.000 = ...

which makes sense and should be valid.

Received on Wednesday, 30 October 2002 05:46:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC