[xquery-talk] Everything is a sequence ...so ....
Liam R E Quin
liam at w3.org
Sat Jan 25 01:58:47 PST 2014
On Sat, 2014-01-25 at 09:49 +0000, Ihe Onwuka wrote:
> you can stare an awful long time at
> someString eq ('stringA','stringB')
> and not realise what is wrong.
I don't know, the message
Single item expected, ("stringA", "strinB") found.
seems a good hint...
But I don't think of eq and = as being the same.
> I wonder whether it would have been better if eq were = and = were
> =>, but then I guess you'd have to worry about how to deal with the
> other comparison operators as well.
We had to be compatible with XPath 1 at least to that extent.
After all, if we were not compatible the Web browsers would never move
to XSLT 2... (hmm).
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
More information about the talk