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

RE: [F&O] string-length

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Thu, 20 Nov 2003 06:41:46 -0800
Message-ID: <EDB607C8AC991F40BE646533A1A673E8A7AF23@RED-MSG-42.redmond.corp.microsoft.com>
To: "Alberto Massari" <amassari@progress.com>, <public-qt-comments@w3.org>

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 GMT

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