<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3314</bug_id>
          
          <creation_ts>2006-06-05 21:23:41 +0000</creation_ts>
          <short_desc>3.14 Extension Expressions, what can the namespace URI contain?</short_desc>
          <delta_ts>2006-06-14 14:38:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 1.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Englich">frans.englich</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9938</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-06-05 21:23:41 +0000</bug_when>
    <thetext>3.14 Extension Expressions reads:

&lt;quote&gt;
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.
&lt;/quote&gt;

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 &quot;empty&quot;, just as for user functions. (Why is it otherwise stressed no default namespace exists?)

I don&apos;t think the latter is clear.

Neither, making the default namespace undefined, doesn&apos;t cover this case:

declare namespace prefix = &quot;&quot;;
(# prefix:notRecognized #)

Proposed wording:

After:

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

Add:

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

I don&apos;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&apos;m completely out of space, of course.


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9997</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-06-13 17:12:23 +0000</bug_when>
    <thetext>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 &quot;There is no default namespace for pragmas&quot; to &quot;Since there is no default namespace for pragmas, a pragma QName must include a namespace prefix.&quot; 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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10025</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-06-14 14:38:49 +0000</bug_when>
    <thetext>Yes, just fine. Thanks for having oversight for my misunderstanding of &apos;declare namespace&apos;.


Frans</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>