W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5690] CVS: Static Typing: FunctX tests needs adjustment

From: <bugzilla@farnsworth.w3.org>
Date: Fri, 16 May 2008 16:03:31 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Jx2P5-0002Dh-No@farnsworth.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5690





------- Comment #3 from nick@cbcl.co.uk  2008-05-16 16:03 -------
For most of the changes I'm seeking to make static-typing specific tests using
static=name="...", but for functx-functx-substring-before-match-* I'd like to
change the return type for the normal version, unless anyone objects. So
currently we have:

declare function functx:substring-before-match
  ( $arg as xs:string? ,
    $regex as xs:string )  as xs:string {

   tokenize($arg,$regex)[1]
 } ;


The current function will return an empty sequence if $arg is empty, so really
should be defined as xs:string?
Received on Friday, 16 May 2008 16:04:09 GMT

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