<?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>16090</bug_id>
          
          <creation_ts>2012-02-23 10:41:55 +0000</creation_ts>
          <short_desc>[QT3TS] CastAs675</short_desc>
          <delta_ts>2012-05-18 14:05:29 +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>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>oneil</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>64483</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-02-23 10:41:55 +0000</bug_when>
    <thetext>This test should expected XPTY0117 for XQ30+.  It therefore needs to be split with dependencies modified appropriately.

   &lt;test-case name=&quot;CastAs675&quot;&gt;
      &lt;description&gt; Try to do an implicit cast from untypedAtomic to xs:QName as part of a function call
        Fails in 1.0 because only a string literal can be cast to xs:QName
        Fails in 3.0 because implicit cast to xs:QName during a function call is not allowed - see bug 11964&lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2011-02-16&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ10+&quot;/&gt;
      &lt;test&gt;&lt;![CDATA[
        declare function local:clarkname($q as xs:QName) as xs:string { 
          concat(&apos;{&apos;, namespace-uri-from-QName($q), &apos;}&apos;, local-name-from-QName($q)) 
        }; 
        let $var := &lt;e&gt;xml:space&lt;/e&gt; 
        return (local:clarkname(node-name($var)), local:clarkname(xs:untypedAtomic($var)))]]&gt;
      &lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPTY0004&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67855</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-18 10:49:13 +0000</bug_when>
    <thetext>Fixed as suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67876</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-18 14:05:29 +0000</bug_when>
    <thetext>Confirmed fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>