<?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>8265</bug_id>
          
          <creation_ts>2009-11-11 21:27:04 +0000</creation_ts>
          <short_desc>[XQuery] Do schema import, module import and module declaration add to the statically known namespaces?</short_desc>
          <delta_ts>2011-09-06 16:03:58 +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>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xquery/#dt-static-namespaces</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Zongaro">zongaro</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</cc>
          
          <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>29504</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-11-11 21:27:04 +0000</bug_when>
    <thetext>According to the definition of &quot;Statically known namespaces,&quot;[1] &quot;Some namespaces are predefined; additional namespaces can be added to the statically known namespaces by namespace declarations in a Prolog and by namespace declaration attributes in direct element constructors.&quot;  The description of namespace declarations[2] states that the declaration adds &quot;the (prefix,URI) pair to the statically known namespaces.&quot;

The descriptions of schema import[3], module import,[4] and module declaration,[5] however, all indicate that those declarations may bind a namespace prefix and that such a prefix must not conflict with a prefix bound by another schema import, module import, namespace declaration or module declaration.  They do not indicate that the (prefix,URI) pair is added to the statically known namespaces.

I don&apos;t see an obvious reason why such a (prefix,URI) pair should not be added to the statically known namespaces - otherwise, the prefix is rendered useless unless overridden by a direct element constructor - so I will assume that this is just an editorial problem.  I suggest the following editorial corrections:

. In section 2.1.1, second bullet, change &quot;by namespace declarations in a Prolog&quot; to &quot;by namespace declarations, schema imports or module imports in a Prolog, by a module declaration,&quot;

. In the last sentence of the first paragraph of 4.2, change &quot;the namespace prefix specified in the module declaration is bound to the module&apos;s target namespace&quot; to &quot;the (prefix,URI) pair is added to the set of statically known namespaces.&quot;

. At the end of the first paragraph of 4.10 and of 4.11, add the sentence &quot;If it does bind a namespace prefix to the target namespace, the (prefix, URI) pair is added to the set of statically known namespaces.&quot;

[1] http://www.w3.org/TR/xquery/#dt-static-namespaces
[2] http://www.w3.org/TR/xquery/#dt-namespace-declaration
[3] http://www.w3.org/TR/xquery/#id-schema-import
[4] http://www.w3.org/TR/xquery/#id-module-import
[5] http://www.w3.org/TR/xquery/#dt-module-declaration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31847</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-02-11 23:24:46 +0000</bug_when>
    <thetext>I think you are right. I believe this is an editorial correction where the intended semantics are clear.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56397</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-09-06 16:03:58 +0000</bug_when>
    <thetext>Fixed in expressions.xml, revision 2.103; query-prolog.xml, revision 1.78.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>