This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3314 - 3.14 Extension Expressions, what can the namespace URI contain?
Summary: 3.14 Extension Expressions, what can the namespace URI contain?
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: Other Linux
: P2 normal
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 21:23 UTC by Frans Englich
Modified: 2006-06-14 14:38 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-06-05 21:23:41 UTC
3.14 Extension Expressions reads:

<quote>
The QName of a pragma must resolve to a namespace URI and local name, using the statically known namespaces [err:XPST0081].
Note:
There is no default namespace for pragmas.
</quote>

I think two things is attempted to be said here:

* That the QName cannot contain an undeclared prefix, as for any other QName(Hence, XPST0081).

* That the namespace URI cannot be "empty", just as for user functions. (Why is it otherwise stressed no default namespace exists?)

I don't think the latter is clear.

Neither, making the default namespace undefined, doesn't cover this case:

declare namespace prefix = "";
(# prefix:notRecognized #)

Proposed wording:

After:

"The QName of a pragma must resolve to a namespace URI and local name, using the statically known namespaces [err:XPST0081]."

Add:

"The namespace URI must be non-empty[ERROR CODE]. In effect, this means the QName must always have a prefix."

I don't know about what error code to use, XPST0081 seems a bit out of place.(Allocate a XQST-code?)

An other alternative is that I'm completely out of space, of course.


Frans
Comment 1 Don Chamberlin 2006-06-13 17:12:23 UTC
Frans,
On June 13, 2006, the Query working group considered your comment and agreed to change the first Note in XQuery Section 3.14 (Extensions Expressions) from "There is no default namespace for pragmas" to "Since there is no default namespace for pragmas, a pragma QName must include a namespace prefix." We believe that the existing error code XPST0081 applies to this case. The working group believes that this change addresses your concern. Accordingly, I have marked this comment as Fixed and Closed. If you are not satisfied with this resolution, you may reopen the comment.
Regards,
Don Chamberlin (for the Query working group)
Comment 2 Frans Englich 2006-06-14 14:38:49 UTC
Yes, just fine. Thanks for having oversight for my misunderstanding of 'declare namespace'.


Frans