W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2005

[Bug 1336] please make value comparison clearer

From: <bugzilla@wiggum.w3.org>
Date: Fri, 20 May 2005 13:50:46 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1DZ7tm-0003LZ-Vw@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1336





------- Additional Comments From mike@saxonica.com  2005-05-20 13:50 -------
Yes, your example is now correct, and illustrates the point that you will indeed
get different answers when testing the typed value of a node and when testing
its string value. There are many other similar cases, for example if a node has
type NMTOKENS, and has the string value "red green blue", then string(.)="red"
will be false, while data(.)="red" will be true. 

I think you will find that XPath 2.0 tutorials, training courses, and textbooks
spend some time explaining these concepts. The specification, of course, is not
designed to be a tutorial.

Michael Kay (personal response).
Received on Friday, 20 May 2005 13:50:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:05 UTC