[Bug 16088] New: [QT3] LocalNameFromQNameFunc015, NamespaceURIFromQNameFunc015

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

           Summary: [QT3] LocalNameFromQNameFunc015,
                    NamespaceURIFromQNameFunc015
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 23 February 2012 09:23:30 UTC