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.

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

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

 2. The example in 15.1.8.1 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
http://companion.yahoo.com/
Received on Saturday, 22 November 2003 08:16:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:28 GMT