<?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>22416</bug_id>
          
          <creation_ts>2013-06-20 13:23:25 +0000</creation_ts>
          <short_desc>[QT3TS] LocalNameFromQNameFunc021a,  NamespaceURIFromQNameFunc021a</short_desc>
          <delta_ts>2013-06-21 15:29:41 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="O&apos;Neil Delpratt">oneil</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>89647</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-06-20 13:23:25 +0000</bug_when>
    <thetext>These tests expect FONS0004, but I get XPTY0004.

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

Unless I&apos;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.

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

    </bug>

</bugzilla>