[Bug 2998] fs:eq for string arguments ill-defined

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





------- Comment #1 from simeon@us.ibm.com  2006-03-14 17:07 -------
I agree this is a bug, and a good catch at that. The following two lines in the
operators mapping table:

fs:eq(A, B) | xs:string | xs:string | op:numeric-equal(fn:compare(A, B), 1) ...
and
fs:ne(A, B) | xs:string | xs:string | fn:not(op:numeric-equal(fn:compare(A, B),
1)) ...

should be changed to:

fs:eq(A, B) | xs:string | xs:string | op:numeric-equal(fn:compare(A, B), 0) ...
and
fs:ne(A, B) | xs:string | xs:string | fn:not(op:numeric-equal(fn:compare(A, B),
0) ...

respectively.

Thanks for the comment.
- Jerome

Received on Tuesday, 14 March 2006 17:07:40 UTC