[Bug 1848] [XQuery] Module Imports

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1848





------- Additional Comments From mike@saxonica.com  2005-08-16 18:01 -------
While on the topic, 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't allowed; on the other hand it
says you can access all the global variables declared in a namespace that you've
imported.

It's a little odd if it isn't allowed: if cyclic references to variables are
allowed across modules, why not allow them within a module? It'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.

Received on Tuesday, 16 August 2005 18:01:41 UTC