W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2008

[Bug 5722] Importing the same module from different modules.

From: <bugzilla@farnsworth.w3.org>
Date: Thu, 29 May 2008 09:39:44 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1K1ebo-0000At-8g@farnsworth.w3.org>

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

           Summary: Importing the same module from different modules.
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


Assume a module M declaring a variable $v as <a/>.  Then assume modules A and B
both importing M, and exposing functions f() returning $v.  Finally assume a
query importing modules A and B.  Should "A:f() is B:f()" evaluate to true?

As far as I can tell this is implementation defined, since the import statement
itself imports an implementation-defined set of modules (and so it is
implementation defined whether it imports the same module as before, or a
copy).
On the other hand the specification states that "Each module has its own static
context", but this still doesn't say whether the two imports should be
considered as the same module.
Received on Thursday, 29 May 2008 09:40:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:23 UTC