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 16088 - [QT3] LocalNameFromQNameFunc015, NamespaceURIFromQNameFunc015
Summary: [QT3] LocalNameFromQNameFunc015, NamespaceURIFromQNameFunc015
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: Benjamin Nguyen
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 09:23 UTC by Tim Mills
Modified: 2012-05-18 13:18 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-02-23 09:23:27 UTC
These tests expect XPTY0004, which continues to be the case in XQ10/XP20.  However, for XQ30/XP30, they should now expect XPTY0117.

The expected type of the argument is xs:QName?, but an element has been passed.

Under the 3.1.5.2 Function Conversion Rules, 

1. Atomization is applied to the element, giving an xs:untypedAtomic.

2. The xs:untypedAtomic is cast to xs:QName.  Prior to XQ30, this was a type check error (XPTY0004).  However, in XQ30/XP30, the item is type xs:untypedAtomic and the xs:QName is namespace-sensitive, so type error [err:XPTY0117] is raised.

   <test-case name="LocalNameFromQNameFunc015">
      <description> Test function fn:local-name-from-QName. Error case - invalid parameter type (simple type) </description>
      <created by="Mike Rorke" on="2005-09-28"/>
      <environment ref="fsx"/>
      <test>fn:local-name-from-QName((//Folder)[1])</test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>

   <test-case name="NamespaceURIFromQNameFunc015">
      <description> Test function fn:namespace-uri-from-QName. Error case - invalid parameter type (simple type) </description>
      <created by="Mike Rorke" on="2005-09-28"/>
      <environment ref="fsx"/>
      <test>fn:namespace-uri-from-QName((//Folder)[1])</test>
      <result>
         <error code="XPTY0004"/>
      </result>
   </test-case>
Comment 1 Michael Kay 2012-05-17 14:52:27 UTC
Agreed, fixed as suggested.
Comment 2 Tim Mills 2012-05-18 13:18:15 UTC
Confirmed fixed.