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

[Bug 1271] New: What if $paramQName has colon, but $paramURI is empty?

From: <bugzilla@wiggum.w3.org>
Date: Tue, 26 Apr 2005 13:20:05 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DQPyv-0002MO-4q@wiggum.w3.org>


           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

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