RE: [F&O] string-length

Seems like a bug!  I'll take a look.

All the best, Ashok

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Alberto Massari
Sent: Monday, November 17, 2003 7:27 AM
To: public-qt-comments@w3.org
Subject: [F&O] string-length


The signature for string-length is

   fn:string-length($arg as xs:string) as xs:integer

but the description says:

"If the value of $arg is the empty sequence, the xs:integer 0 is
returned".

It seems to me that the signature should be changed to be

   fn:string-length($arg as xs:string?) as xs:integer

so that an empty sequence can be recognized as a valid argument

Alberto

Received on Thursday, 20 November 2003 09:41:40 UTC