W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2011

[Bug 11590] Correct the expected result of test functx-fn-namespace-uri-for-prefix-all

From: <bugzilla@jessica.w3.org>
Date: Mon, 25 Apr 2011 20:40:37 +0000
To: public-qt-comments@w3.org
Message-Id: <E1QESaD-0004CW-3c@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11590

Andrew Eisenberg <andrew.eisenberg@us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew.eisenberg@us.ibm.com

--- Comment #7 from Andrew Eisenberg <andrew.eisenberg@us.ibm.com> 2011-04-25 20:40:36 UTC ---
The XML Query WG confirmed the decision in Comment #6 at its Feb./March 2011
F2F meeting.

A simplified query for us to consider is:

namespace-uri-for-prefix('', <a/>)

The WG believes that this should return the empty string rather than the empty
sequence.

Partly, this belief is supported by:

Section 11.2.4 fn:namespace-uri-from-QName

"If $arg is in no namespace, the zero-length xs:anyURI is returned."

Section 14.3 fn:namespace-uri

"... or if it is an element or attribute node whose expanded-QName (as
determined by the dm:node-name accessor in the Section 5.11 node-name
AccessorDM) is in no namespace, then the function returns the xs:anyURI
corresponding to the zero-length string."


Section 11.2.5, fn:namespace-uri-for-prefix, of F&O says:

"If $prefix is the zero-length string or the empty sequence, it returns the
namespace URI of the default (unnamed) namespace."


The WG believes that the namespace URI of an element in no namespace could be
clarified in the next version of XQuery and F&O.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 25 April 2011 20:40:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:45 UTC