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

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

From: Kay Michael <Michael.Kay@icl.com>
Date: Wed, 7 Jul 1999 13:30:47 +0100
Message-ID: <93CB64052F94D211BC5D0010A800133170EF61@wwmess3.bra01.icl.co.uk>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:16 UTC