<?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>6364</bug_id>
          
          <creation_ts>2009-01-06 10:26:22 +0000</creation_ts>
          <short_desc>Context Item is required for id-rename-expr-012/013</short_desc>
          <delta_ts>2009-01-06 22:58:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XQuery Update Facility Test Suite</product>
          <component>XQuery Update Facility Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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="Peter M. Fischer">peter.fischer</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22938</commentid>
    <comment_count>0</comment_count>
    <who name="Peter M. Fischer">peter.fischer</who>
    <bug_when>2009-01-06 10:26:22 +0000</bug_when>
    <thetext>id-rename-expr-012, 013 use the expression

xs:int(salary) + 1 

as target/name for a rename. 

No context item is set, so we might get XPDY0002, unless
some static analysis is done, which is not mentioned in the spec.
Changing to xs:int($var/salary) + 1 should fix this, and probably was
intended.

If indeed static analysis should be used, this should be made more explicit in the spec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22968</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-01-06 22:57:44 +0000</bug_when>
    <thetext>I&apos;ve made the changes that you suggested, changing the expression to xs:int($var/salary[1]) + 1.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>