W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

[F&O] 15.1.8 fn:exists

From: Dimitre Novatchev <dnovatchev@yahoo.com>
Date: Sat, 22 Nov 2003 05:09:29 -0800 (PST)
Message-ID: <20031122130929.95931.qmail@web41112.mail.yahoo.com>
To: public-qt-comments@w3.org

There are two issues with this function:

 1.  The function name does not accurately reflect its semantic  it does
     not provide an answer if a sequence exists, but if a sequence 
     is non-empty.

     not(empty($seq)) = exists($seq)

     a better name for this function would be notEmpty() or nonEmpty()

 2. The example in is incorrect:

    "fn:exists($seq) returns true."

The above statement is true only if $seq is non-empty and $seq has not
been defined. One can incorrectly deduce that the function returns true
for any sequence.

Dimitre Novatchev.

Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Received on Saturday, 22 November 2003 08:16:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:15 UTC