Implicit conversion of node-sets to boolean for comparisons. (Issue 15. xpath-issue-node-set-conversion)

Gentlemeen,

IMHO, the best resolution is the following:

A node-set is converted to True if it contains at least one value that is True if converted to
boolean.

Thus:
an empty node-set is False;
an node-set (False) is False;
an node-set (True) is True;
an node-set (False, False, 0) is still False;

The solution is preferable for me, because it allows deeper optimizations than any other I can
imagine.

Thanks,
IvAn Mikhailov.


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

Received on Monday, 22 April 2002 14:15:19 UTC