[Bug 22416] New: [QT3TS] LocalNameFromQNameFunc021a, NamespaceURIFromQNameFunc021a

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22416

            Bug ID: 22416
           Summary: [QT3TS] LocalNameFromQNameFunc021a,
                    NamespaceURIFromQNameFunc021a
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org

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>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 20 June 2013 13:23:33 UTC