<?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>14342</bug_id>
          
          <creation_ts>2011-09-30 11:00:17 +0000</creation_ts>
          <short_desc>[QT3TS] functx-fn-namespace-uri-for-prefix-all</short_desc>
          <delta_ts>2012-05-31 12:23:05 +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>Working 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="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>mike</cc>
    
    <cc>oneil</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>57557</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-09-30 11:00:17 +0000</bug_when>
    <thetext>The expected result of this test in XQTS was:

http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre

but in QT3 is:

|http://datypic.com/pre|http://datypic.com/unpre|http://datypic.com/pre

The latter, I believe, is wrong.  See Bug 11590.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67834</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-05-18 09:36:48 +0000</bug_when>
    <thetext>This bug was fixed on the 2011-10-07 by myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67879</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-18 14:33:38 +0000</bug_when>
    <thetext>The expected result does not match the one in XQTS.

In QT3 it is:

         &lt;assert-string-value&gt; http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre&lt;/assert-string-value&gt;


To match XQTS it would be:

         &lt;assert-string-value&gt;http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre&lt;/assert-string-value&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68017</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-05-22 16:56:50 +0000</bug_when>
    <thetext>I will check this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68023</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-22 19:23:09 +0000</bug_when>
    <thetext>I agree, the result is wrong.

It hinges on the first function call:

namespace-uri-for-prefix(&apos;&apos;, $in-xml)

The spec says:

If $prefix is the zero-length string or the empty sequence, then if $element has a default namespace (that is, a namespace node with no name), the function returns the namespace URI of the default namespace. If $element has no default namespace, the function returns the empty sequence.

The discussion on bug 11590 confirmed that the expected result here was an empty sequence, and therefore the expected result should not have the leading space. (There were many oscillations before we reached that conclusion, and it&apos;s quite likely that a change was made to the XQTS result after we did the conversion.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68033</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-05-23 08:21:31 +0000</bug_when>
    <thetext>Bug fix: Removed space in the test result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68405</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-31 12:23:05 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>