W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2004

[F&O] 14.1.3 fn:namespace-uri can no longer return a string

From: Sarah Wilkin <swilkin@apple.com>
Date: Wed, 8 Sep 2004 13:59:40 -0700
Message-Id: <0050AA0E-01DA-11D9-8CDD-000A278462D6@apple.com>
Cc: Sarah Wilkin <swilkin@apple.com>
To: public-qt-comments@w3.org

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 

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.

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.

Received on Wednesday, 8 September 2004 21:00:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:59 UTC