[Bug 1336] please make value comparison clearer

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