- From: Ashok Malhotra <ashok.malhotra@oracle.com>
- Date: Tue, 28 Sep 2004 14:48:57 -0700
- To: Sarah Wilkin <swilkin@apple.com>, public-qt-comments@w3.org
Sarah: We discussed your comment at the joint WG telcon today. As Michael Kay pointed out in http://lists.w3.org/Archives/Public/public-qt-comments/2004Sep/0044.html the grammar in RFC 2396 prohibits the zero-length string but the RFC defines semnatics for it. So, we took the position that the zero-length string was, indeed, a valid URI and so it could be returned. I'll change some of the wording to make this clear. Please let us know if this is satisfactory. All the best, Ashok -----Original Message----- From: public-qt-comments-request@w3.org [mailto:public-qt-comments-request@w3.org]On Behalf Of Sarah Wilkin Sent: Wednesday, September 08, 2004 2:00 PM To: public-qt-comments@w3.org Cc: Sarah Wilkin Subject: [F&O] 14.1.3 fn:namespace-uri can no longer return a string In F&O 14.1.3, namespace-uri was changed to return an xs:anyURI instead of an xs:string. The sentence "If $arg is the empty sequence, the zero-length string is returned" is no longer valid. There may be other occurrences of this in the document where xs:string was changed to xs:anyURI. In similar cases (11.2.3) the signature is xs:anyURI?. So either: fn:namespace-uri() as xs:anyURI? fn:namespace-uri($arg as node()?) as xs:anyURI? If $arg is the empty sequence, the empty sequence returned. or: fn:namespace-uri() as xs:anyURI fn:namespace-uri($arg as node()?) as xs:anyURI If $arg is the empty sequence, xs:anyURI("") is returned. --Sarah
Received on Tuesday, 28 September 2004 21:49:43 UTC