boolean(), number(), and string()

The spec for boolean(), number(), and string() says in each case: "if the
argument is omitted, it defaults to the current node".

It isn't clear whether the intended default is "the value of the current
node" or "a node set containing the current node as its only member".

For number() and string() the effect is (I think) the same, but for
boolean(), the first interpretation returns true iff the current node is
non-empty, while the second returns true if the current node exists (which
is always?).

Mike Kay

Received on Wednesday, 7 July 1999 08:30:19 UTC