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 6731 - [XQuery11] Type of External Variable
Summary: [XQuery11] Type of External Variable
Status: RESOLVED NEEDSINFO
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords: proposalAccepted
Depends on:
Blocks:
 
Reported: 2009-03-24 15:17 UTC by Jonathan Robie
Modified: 2010-01-16 09:32 UTC (History)
3 users (show)

See Also:


Attachments

Description Jonathan Robie 2009-03-24 15:17:42 UTC
The current XQuery 1.1 Working Draft discusses the static type inferred for external variables:

  If a variable declaration includes a type, that type is added to the
  static context as the type of the variable. If a variable
  declaration includes a VarValue or a VarDefaultValue but not an
  explicit type, the type of the variable is inferred from static
  analysis of the expression and is added to the static context.

Doesn't this belong in the Formal Semantics?

We do need to know what the required type of an external variable is. At the last Face to Face, we decided the following:

- Static type has no dependency on external

- In a dynamic implementation, the static type is either (1) the
  declared type, or (2) item()*

- The original paragraph cited in 2008Oct/0002.html is only true when
  there is no external variable.

- Editorially, bringing the two descriptions of the types of external
  variables closer together, and giving them similar structure, would
  be helpful.

- Wording: 'the variable contains external' - be clear that this is
  syntactic productions.
Comment 1 Michael Dyck 2009-03-24 18:09:08 UTC
Most of this is covered by Michael Kay's proposal (member only):
http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2009Feb/0100.html
Comment 2 Michael Kay 2009-05-18 08:11:34 UTC
We believe this bug can be resolved by adopting the proposal posted at

http://lists.w3.org/Archives/Member/w3c-xsl-query/2009May/0036.html

Comment 3 Jim Melton 2009-09-17 19:46:21 UTC
I'm re-opening this bug because it was accidentally marked RESOLVED/FIXED before the WG had formally endorsed the solution. Apologies for the confusion!
Comment 4 Jonathan Robie 2009-10-27 16:27:24 UTC
Closing, per WG decision today. In the current internal WD.