<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16088</bug_id>
          
          <creation_ts>2012-02-23 09:23:27 +0000</creation_ts>
          <short_desc>[QT3] LocalNameFromQNameFunc015, NamespaceURIFromQNameFunc015</short_desc>
          <delta_ts>2012-05-18 13:18:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64481</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-02-23 09:23:27 +0000</bug_when>
    <thetext>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.

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

   &lt;test-case name=&quot;NamespaceURIFromQNameFunc015&quot;&gt;
      &lt;description&gt; Test function fn:namespace-uri-from-QName. Error case - invalid parameter type (simple type) &lt;/description&gt;
      &lt;created by=&quot;Mike Rorke&quot; on=&quot;2005-09-28&quot;/&gt;
      &lt;environment ref=&quot;fsx&quot;/&gt;
      &lt;test&gt;fn:namespace-uri-from-QName((//Folder)[1])&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPTY0004&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67808</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-17 14:52:27 +0000</bug_when>
    <thetext>Agreed, fixed as suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67871</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-18 13:18:15 +0000</bug_when>
    <thetext>Confirmed fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>