<?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>6731</bug_id>
          
          <creation_ts>2009-03-24 15:17:42 +0000</creation_ts>
          <short_desc>[XQuery11] Type of External Variable</short_desc>
          <delta_ts>2010-01-16 09:32:55 +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 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>proposalAccepted</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Robie">jonathan.robie</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>jmdyck</cc>
    
    <cc>mike</cc>
          
          <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>24388</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-03-24 15:17:42 +0000</bug_when>
    <thetext>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&apos;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: &apos;the variable contains external&apos; - be clear that this is
  syntactic productions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24393</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-03-24 18:09:08 +0000</bug_when>
    <thetext>Most of this is covered by Michael Kay&apos;s proposal (member only):
http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2009Feb/0100.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25181</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-05-18 08:11:34 +0000</bug_when>
    <thetext>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

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27263</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2009-09-17 19:46:21 +0000</bug_when>
    <thetext>I&apos;m re-opening this bug because it was accidentally marked RESOLVED/FIXED before the WG had formally endorsed the solution. Apologies for the confusion!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29071</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-10-27 16:27:24 +0000</bug_when>
    <thetext>Closing, per WG decision today. In the current internal WD.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>