W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1999

Re: boolean(), number(), and string()

From: James Clark <jjc@jclark.com>
Date: Wed, 07 Jul 1999 19:58:03 +0700
Message-ID: <37834EDB.DC5C71EE@jclark.com>
To: Kay Michael <Michael.Kay@icl.com>
CC: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Kay Michael wrote:
> 
> 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".

The second.  I'll clarify this.

> 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?).

It would indeed be always true, which means the default is silly, so
it's been removed.

(The value for the default is always a node-set with the context node as
its only member, converted to the appropriate argument type if
necessary.)

James
Received on Wednesday, 7 July 1999 09:01:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:49 GMT