- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 26 Apr 2005 13:20:05 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1271
Summary: What if $paramQName has colon, but $paramURI is empty?
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: PC
URL: http://www.w3.org/TR/xpath-functions/#func-QName
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Functions and Operators
AssignedTo: ashok.malhotra@oracle.com
ReportedBy: jonathan.robie@datadirect.com
QAContact: public-qt-comments@w3.org
What should an implementation do if $paramQName has colon, but $paramURI is
empty? The spec does not say.
I think we should raise an error in this case. The part of the name before the
colon can't be a prefix, since we have no namespace URI to interpret it with.
The local name needs to conform to
http://www.w3.org/TR/REC-xml-names/#NT-NCName, so the local name doesn't contain
the colon either. So there's no useful way to interpret a name with a colon
unless there is a namespace URI to associate with it.
Received on Tuesday, 26 April 2005 13:20:13 UTC