<?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>3129</bug_id>
          
          <creation_ts>2006-04-21 09:56:36 +0000</creation_ts>
          <short_desc>Catalog info for cast-within-3 and cast-within-4 are swapped</short_desc>
          <delta_ts>2006-06-14 20:34:07 +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.9.0</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="Alberto Massari">amassari</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9361</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Massari">amassari</who>
    <bug_when>2006-04-21 09:56:36 +0000</bug_when>
    <thetext>cast-within-3 has this content

let $value := xs:integer(10.0)
return $value cast as xs:nonNegativeInteger

but it expect &quot;minus10.txt&quot; as result, i.e. -10

On the other end, cast-within-4 has this content

let $value := xs:integer(-10.0)
return $value cast as xs:negativeInteger

but it expect &quot;value10.txt&quot; as result, i.e. +10

I think minus10.txt is the result for cast-within-4 and value10.txt for cast-within-3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9371</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-04-21 14:13:39 +0000</bug_when>
    <thetext>Alberto:

You are correct.  the values were swapped.  I switched the expected values
to reflect the correct expected valued.  Please close the bug if in agreement.

Thanks,
Carmelo

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9924</commentid>
    <comment_count>2</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-06-02 13:42:35 +0000</bug_when>
    <thetext>This was re-opened by mistake.  Closing it again.

Carmelo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>