<?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>1928</bug_id>
          
          <creation_ts>2005-08-31 21:41:14 +0000</creation_ts>
          <short_desc>[XQuery] Recursive imports and fowards references</short_desc>
          <delta_ts>2005-09-30 08:59:54 +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>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Michael Kay">mike</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>5623</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-08-31 21:41:14 +0000</bug_when>
    <thetext>Transferred at the request of the WG from 1848:

It would be useful to clarify whether a module that imports
its own namespace is allowed to contain forwards references to its own global
variables. You can read the spec either way on this: on the one hand it says
forwards references to global variables aren&apos;t allowed; on the other hand it
says you can access all the global variables declared in a namespace that you&apos;ve
imported.

It&apos;s a little odd if it isn&apos;t allowed: if cyclic references to variables are
allowed across modules, why not allow them within a module? It&apos;s also difficult
to explain (and implement!) that a module has access to all the global variables
in an imported namespace except those that are declared in the same module and
after the variable reference.

Proposal: if a module imports its own namespace, then all variables in that
namespace are in scope throughout the module, including within the entire module
where the variable is declared.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6572</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-09-29 08:59:55 +0000</bug_when>
    <thetext>On Sept. 28, 2005, the Query Working Group decided that a forward reference in 
a variable initializing expression will remain an error, even in modules that 
import their own target namespace. This is because a module import that 
references a namespace is interpreted as importing an implementation-defined 
set of modules OTHER than the module containing the import. 

If you are satisfied with this resolution, please respond by closing this 
Bugzilla entry.

Regards,
Don Chamberlin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6618</commentid>
    <comment_count>2</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2005-09-30 08:59:54 +0000</bug_when>
    <thetext>[Mike indicated during the meeting he was OK, and I am closing this issue.
He was also present when we voted to request CR, and did not object.

 Liam
]
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>