This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1571 - [FS] technical: 4.1.2 Variable References
Summary: [FS] technical: 4.1.2 Variable References
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Jerome Simeon
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 18:06 UTC by Michael Dyck
Modified: 2005-09-06 12:58 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-13 18:06:00 UTC
4.1.2 Variable References

DEv / rule 2
"an imported variable is evaluated in the dynamic context of the module in
which it is declared"
    I don't think this will work. VarName's namespace prefix could be
    bound to a different namespace (or not bound at all) in the imported
    module.
Comment 1 Jerome Simeon 2005-07-20 23:34:22 UTC
You are right, I believe the right way to write the inference rule is
to access the variable value directly from the module environment.

So instead of writing:

  statEnv |- VarName of var expands to expanded-QName
  dynEnv.varValue(expanded-QName) = #IMPORTED(URI)
  URI =>module_dynEnv dynEnv1
  dynEnv1 |- $ VarName => Value
  ----------------------------------------------------
  dynEnv |- $ VarName => Value

we should write:

  statEnv |- VarName of var expands to expanded-QName
  dynEnv.varValue(expanded-QName) = #IMPORTED(URI)
  URI =>module_dynEnv dynEnv1
  dynEnv1.varValue(expanded-QName) = Value
  ----------------------------------------------------
  dynEnv |- $ VarName => Value

- Jerome and Michael

Comment 2 Michael Dyck 2005-07-21 01:00:50 UTC
I agree.
Comment 3 Jerome Simeon 2005-07-22 15:58:17 UTC
The working group as accepted your proposed resolution as amended.
- Jerome
On behalf of the XML Query and XSL WGs
Comment 4 Jerome Simeon 2005-07-22 16:01:03 UTC
The WGs have approved your comment and the following correction.

replace:

  statEnv |- VarName of var expands to expanded-QName
  dynEnv.varValue(expanded-QName) = #IMPORTED(URI)
  URI =>module_dynEnv dynEnv1
  dynEnv1 |- $ VarName => Value
  ----------------------------------------------------
  dynEnv |- $ VarName => Value

by:

  statEnv |- VarName of var expands to expanded-QName
  dynEnv.varValue(expanded-QName) = #IMPORTED(URI)
  URI =>module_dynEnv dynEnv1
  dynEnv1.varValue(expanded-QName) = Value
  ----------------------------------------------------
  dynEnv |- $ VarName => Value

- Jerome
On behalf of the XQuery and XSL WGs