RE: F&O When would the sum function return the empty sequence?

You are correct.  The signature of fn:sum() should NOT have a "?" on its
return type e.g. the return type should be xdt:anyAtomicType.

/paulc
Chair, XML Query WG

Paul Cotton, Microsoft Canada 
17 Eleanor Drive, Nepean, Ontario K2E 6A3 
Tel: (613) 225-5445 Fax: (425) 936-7329 
mailto:pcotton@microsoft.com

  

> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of Priscilla Walmsley
> Sent: May 10, 2003 7:28 AM
> To: public-qt-comments@w3.org
> Subject: F&O When would the sum function return the empty sequence?
> 
> 
> The signature for the sum function now says that it can return the
empty
> sequence.  However, it is unclear when this would ever happen.  If it
is
> passed the empty sequence, it returns 0, not the empty sequence.
> 
> Thanks,
> Priscilla

Received on Tuesday, 13 May 2003 12:54:49 UTC