<?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>5703</bug_id>
          
          <creation_ts>2008-05-20 21:27:19 +0000</creation_ts>
          <short_desc>extra space in the result of functx-fn-namespace-uri-for-prefix-all</short_desc>
          <delta_ts>2008-06-24 15:11:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Frans Englich">frans.englich</assigned_to>
          
          
          <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>20185</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2008-05-20 21:27:19 +0000</bug_when>
    <thetext>The expected result of this test case is &quot; http://datypic.com/pre http://datypic.com/unpre http://datypic.com/pre&quot;.

The leading space in this result would be justified if namespace-uri-for-prefix(&apos;&apos;, $in-xml) returned a zero-length string ($in-xml has no default namespace).

Section 11.2.5, fn:namespace-uri-for-prefix, in F&amp;O, says:

&quot;If $prefix is the zero-length string or the empty sequence, it returns the namespace URI of the default (unnamed) namespace. Otherwise, it returns the empty sequence.&quot;

I think that one could interpret this as requiring that an empty-sequence be returned, rather than a zero-length string. This interpretation would remove the leading space from the expected result.

Am I missing something? Should this be brought to the WGs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20187</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-05-20 21:45:38 +0000</bug_when>
    <thetext>I agree that the spec could be clarified here. However, I think that if there is no default namespace, namespace-uri-for-prefix(&quot;&quot;, $e) should return &quot;&quot; as the expected results suggest. This is consistent with the results of other functions that return the pseudo-URI of the non-namespace, for example namespace-uri($e) and namespace-uri-from-QName(&quot;&quot;, &quot;fred&quot;) both return &quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20197</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-05-21 08:15:55 +0000</bug_when>
    <thetext>Yes, I think #1 sounds sensible. I think that&apos;s verified by other tests currently, as well.

Maybe close this report, and open an editorial one on the spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20805</commentid>
    <comment_count>3</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2008-06-24 15:10:52 +0000</bug_when>
    <thetext>Ok, closing the report on the test suite. Feel free to open up on the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>