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 22416 - [QT3TS] LocalNameFromQNameFunc021a, NamespaceURIFromQNameFunc021a
Summary: [QT3TS] LocalNameFromQNameFunc021a, NamespaceURIFromQNameFunc021a
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-20 13:23 UTC by Tim Mills
Modified: 2013-06-21 15:29 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2013-06-20 13:23:25 UTC
These tests expect FONS0004, but I get XPTY0004.

local-name-from-QName expects an xs:QName.  

Unless I'm mistaken, the argument supplied is an elemStr element whose typed value is an xs:string (not the expected type xs:QName).  Function conversion does not attempt a cast from xs:string to xs:QName, hence FONS0004 is incorrect.

   <test-case name="LocalNameFromQNameFunc021a">
      <description> Test function fn:local-name-from-QName. Conditional expression as parameter where one branch does NOT result in a QName value </description>
      <created by="Mike Rorke" on="2005-09-28"/>
      <modified by="Michael Kay" on="2013-05-01" change="Error code for 3.0. See bug 21723"/>
      <modified by="O'Neil Delpratt" on="2013-06-07" change="Added schemeImport dependency. See bug issue #21238" />
      <environment ref="qname"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <dependency type="feature" value="schemaImport"/>
      <test>fn:local-name-from-QName( if( true() ) then (/root/elemStr)[1] else (/root/elemQN)[1] )</test>
      <result>
         <error code="FONS0004"/>
      </result>
   </test-case>
Comment 1 Michael Kay 2013-06-21 15:29:41 UTC
Agreed. Fixed.