<?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>9497</bug_id>
          
          <creation_ts>2010-04-12 08:56:57 +0000</creation_ts>
          <short_desc>[XQuery11] 4.16 Context Item Declaration: VarValue/VarDefaultVal inside a library module</short_desc>
          <delta_ts>2010-06-15 16:46:03 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tobias">MAILanTobias</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</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>34787</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias">MAILanTobias</who>
    <bug_when>2010-04-12 08:56:57 +0000</bug_when>
    <thetext>please clarify what happened if there is a context item declaration with a VarValue or VarDefaultVal inside a library module. should an error be raised? If so, which one?

4.16 Context Item Declaration:
When a context item declaration appears in a library module, neither VarValue nor VarDefaultValue may be specified. Such a context item declaration serves only to declare the expected type of the context item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35158</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-04-20 14:59:20 +0000</bug_when>
    <thetext>Nice catch - I need to define an error for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36182</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-06-15 14:24:31 +0000</bug_when>
    <thetext>I propose to change the text as follows:

&lt;new&gt;
A context item declaration allows a query to specify the static type,
value, or default value for the initial context item.

In a library module, a context item declaration specifies only the
static type.  Specifying a VarValue or VarDefaultValue for a context item
declaration in a library module is a static error [err:XQST0113].
&lt;/new&gt;

And to add this error description:

&lt;new&gt;
err:XQST0113

Specifying a VarValue or VarDefaultValue for a context item declaration
in a library module is a static error.
&lt;/new&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>