<?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>19090</bug_id>
          
          <creation_ts>2012-09-27 09:57:04 +0000</creation_ts>
          <short_desc>[XQ30] casting to xs:anySimpleType</short_desc>
          <delta_ts>2012-10-09 16:18:38 +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>Functions and Operators 3.0</component>
          <version>Working drafts</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="Michael Kay">mike</assigned_to>
          <cc>jonathan.robie</cc>
          
          <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>74634</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-09-27 09:57:04 +0000</bug_when>
    <thetext>In XQ10, it was an error (XPST0080) to cast to xs:anyAtomicType.

Since casting to simple types is now permitted, this error condition should be extended to casting to xs:anySimpleType.

This affects cast and castable in XQ30 and XP30.

This is tested in K-SeqExprCastable-5a and  K-SeqExprCast-4a.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74897</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-09-30 19:57:13 +0000</bug_when>
    <thetext>Requires Working Group agreement. I&apos;m leaving this open until the next telcon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75073</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-10-02 17:03:23 +0000</bug_when>
    <thetext>The Working Group agrees. The F&amp;O spec is definitive here, and already raises an error in this case. The language specifications need to be revised to agree with F&amp;O.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75130</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-10-02 22:38:09 +0000</bug_when>
    <thetext>Changing the resolution to INVALID. As I started adding this to the spec, I found that this error is already defined in 3.16.3 Cast: 

&quot;the target type cannot be xs:NOTATION or xs:anyAtomicType [err:XPST0080].&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75194</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-03 06:09:51 +0000</bug_when>
    <thetext>I presume you marked this as invalid because F&amp;O doesn&apos;t mention anySimpleType for XPST0080.

I&apos;m therefore reopening it against F&amp;O</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75704</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-10-09 16:18:38 +0000</bug_when>
    <thetext>In XQuery/XPath/F&amp;O, we will add xs:anySimpleType to the list:

&quot;the target type cannot be xs:NOTATION or xs:anyAtomicType or xs:anySimpleType[err:XPST0080].&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>