<?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>14370</bug_id>
          
          <creation_ts>2011-10-04 00:53:45 +0000</creation_ts>
          <short_desc>[XQuery30] editorial: 4.12 Module Import: variable name clash has no exception for &apos;private&apos;</short_desc>
          <delta_ts>2011-11-18 23:02:19 +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 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>57744</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-10-04 00:53:45 +0000</bug_when>
    <thetext>4.12 &quot;Module Import&quot; says:
&quot;It is a static error if the expanded QName of a variable declared in an imported module is equal (as defined by the eq operator) to the expanded QName of a variable declared in the importing module or in another imported module (even if the declarations are consistent) [err:XQST0049].&quot;

I believe we intend that the error doesn&apos;t occur if the variable(s) declared in the imported module(s) is/are private.

(Note that the appendix blurb for XQST0049 says:
    &quot;It is a static error if two or more variables declared or imported by a
    module have equal expanded QNames (as defined by the eq operator.)&quot;
which avoids this problem because private variables are not &quot;imported&quot;.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60158</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2011-11-18 23:02:19 +0000</bug_when>
    <thetext>Nice catch. Fix will appear in the next build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>