<?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>6914</bug_id>
          
          <creation_ts>2009-05-18 10:53:11 +0000</creation_ts>
          <short_desc>[XQTS] ST-WhereExpr001, ST-WhereExpr002 and statictyping-7 should expect XPTY0004 and not FORG0006</short_desc>
          <delta_ts>2009-08-31 20:06:08 +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>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Oliver Hallam">oliver</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <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>25182</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2009-05-18 10:53:11 +0000</bug_when>
    <thetext>ST-WhereExpr001 is as follows:

for $file in ($input-context//Folder)[1]/File
where ($file, 1)
return $file/FileName

the where predicate is normalized to
fn:boolean(($file, 1))

$file has static type element File of type xs:untyped, and 1 has type xs:integer

The sequence ($file, 1) therefore has static type [FS 4.1]
(element File of type xs:untyped, xs:integer)

This does not satisfy the rule given for fn:boolean [FS 7.2.4]

Thus, I believe in static typing mode, XPTY0004 is the only reasonable result.


Similar for ST-WhereExpr002 and statictyping-7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26490</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-08-17 18:05:26 +0000</bug_when>
    <thetext>I&apos;ve made the changes that you suggested.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26492</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-08-17 18:38:58 +0000</bug_when>
    <thetext>Having closed this bug, I just noticed Bug #2943, in which we explicitly decided that FORG0006 was the correct expected result.

I&apos;m going to ask the the XML Query WG to look at this issue at our next meeting.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26761</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-08-31 20:06:08 +0000</bug_when>
    <thetext>At our Aug. 25 meeting, the XML Query and XSL WGs decided to accept both FORG0006 and XPTY0004 for the test cases that you&apos;ve identified.

Please close this bug if you agree with this resolution.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>