<?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>16681</bug_id>
          
          <creation_ts>2012-04-10 13:05:07 +0000</creation_ts>
          <short_desc>[XP30] err:XPDY0129</short_desc>
          <delta_ts>2012-05-22 16:33:44 +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>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.w3.org/XML/Group/qtspecs/specifications/xquery-30/html/xpath-30.html#id-cast</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>66561</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-04-10 13:05:07 +0000</bug_when>
    <thetext>In section 3.13.2 Cast of XPath 3.0, a new error is introduced.

err:XPDY0129

    The cast failed because the input value is not in the lexical space of the target type (after whitespace normalization as required by the target type).

Yet the text also states that:

&quot;If casting from the input type to the target type is supported but nevertheless it is not possible to cast the input value into the value space of the target type, a dynamic error is raised. [err:FORG0001] This includes the case when any facet of the target type is not satisfied. For example, the expression &quot;2003-02-31&quot; cast as xs:date would raise a dynamic error.&quot;

What conditions does XPDY0129 catch which are not already caught by FORG0001 (Invalid value for cast/constructor.) or indeed err:FOCA0002 (Invalid lexical value).

Note that XPDY0129 is not mentioned in section 18 Casting of F&amp;0 3.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68012</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-05-22 16:33:44 +0000</bug_when>
    <thetext>I will replace XPDY0129 with FORG0001.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>