<?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>21664</bug_id>
          
          <creation_ts>2013-04-11 07:47:08 +0000</creation_ts>
          <short_desc>[XP30] Castable expresssion</short_desc>
          <delta_ts>2013-05-07 16:22:40 +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>XPath 3.0</component>
          <version>Candidate Recommendation</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="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>85939</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-04-11 07:47:08 +0000</bug_when>
    <thetext>In XP20/XQ10:

The expression E castable as T returns true if the result of evaluating E can be successfully cast into the target type T by using a cast expression; otherwise it returns false. If evaluation of E fails with a dynamic error, the castable expression as a whole fails. 

In XP30/XQ30:

&quot;The expression E castable as T returns true if the result of evaluating E can be successfully cast into the target type T by using a cast expression; otherwise it returns false. If evaluation of E fails with a dynamic error, the castable expression returns false.&quot;

This apparent change appears to be a mistake, since the resolution of Bug 4873 has not been applied to XP30/XQ30.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=4873

Note that the change logs also record this change:

In E castable as T, if E raises a dyanmic error, castable returns false, it does not &quot;fail&quot;. See 3.13.3 Castable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87345</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-05-07 16:16:31 +0000</bug_when>
    <thetext>I believe the correct language should be that found here:

http://www.w3.org/XML/2007/qt-errata/xquery-errata.html#E5

http://www.w3.org/XML/2007/qt-errata/xpath20-errata.html#E5

If the WG agrees, I will make sure this is reflected in the text.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>