This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16090 - [QT3TS] CastAs675
Summary: [QT3TS] CastAs675
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 10:41 UTC by Tim Mills
Modified: 2012-05-18 14:05 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-02-23 10:41:55 UTC
This test should expected XPTY0117 for XQ30+.  It therefore needs to be split with dependencies modified appropriately.

   <test-case name="CastAs675">
      <description> 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</description>
      <created by="Michael Kay" on="2011-02-16"/>
      <dependency type="spec" value="XQ10+"/>
      <test><![CDATA[
        declare function local:clarkname($q as xs:QName) as xs:string { 
          concat('{', namespace-uri-from-QName($q), '}', local-name-from-QName($q)) 
        }; 
        let $var := <e>xml:space</e> 
        return (local:clarkname(node-name($var)), local:clarkname(xs:untypedAtomic($var)))]]>
      </test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>
Comment 1 Michael Kay 2012-05-18 10:49:13 UTC
Fixed as suggested.
Comment 2 Tim Mills 2012-05-18 14:05:29 UTC
Confirmed fixed.