<?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>2961</bug_id>
          
          <creation_ts>2006-03-02 11:06:26 +0000</creation_ts>
          <short_desc>fn-base-uri-2 results in XPTY0019 iso FOTY0011</short_desc>
          <delta_ts>2006-05-17 22:15:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.8.6</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Marc Van Cappellen">marc.van.cappellen</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8510</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-03-02 11:06:26 +0000</bug_when>
    <thetext>fn-base-uri-2.xq reads as follows:

let $var := 0
return
 $var/fn:base-uri()

due to the path expression, where the context item is an atomic value, 
implementations report XPTY0019 iso FOTY0011.

FYI, a different query, but this is similar to 
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2804

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8514</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-03-02 13:14:09 +0000</bug_when>
    <thetext>Agreed. In section 3.2, Path Expressions, XQuery says:

&quot;Each operation E1/E2 is evaluated as follows: Expression E1 is evaluated, and
if the result is not a (possibly empty) sequence of nodes, a type error is
raised [err:XPTY0019].&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8677</commentid>
    <comment_count>2</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-10 22:13:48 +0000</bug_when>
    <thetext>Mark:

Correct.  I changed the test to remove the path.  Please close the bug if in agreement and able to verify.  New query reads:

&quot;(1 to 100)[fn:base-uri()]&quot;

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9844</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-17 22:15:16 +0000</bug_when>
    <thetext>verified and looks ok</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>