<?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>1240</bug_id>
          
          <creation_ts>2005-04-12 16:22:46 +0000</creation_ts>
          <short_desc>[F&amp;O] fn:prefix-from-QName doesn&apos;t say what happens when there&apos;s no prefix</short_desc>
          <delta_ts>2005-04-28 10:04:35 +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>Functions and Operators 1.0</component>
          <version>Last Call drafts</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="Jeni Tennison">jeni</reporter>
          <assigned_to name="Ashok Malhotra">ashok.malhotra</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>3727</commentid>
    <comment_count>0</comment_count>
    <who name="Jeni Tennison">jeni</who>
    <bug_when>2005-04-12 16:22:46 +0000</bug_when>
    <thetext>It&apos;s not clear what you get when you call prefix-from-QName() on an xs:QName
that doesn&apos;t have a prefix. The signature of prefix-from-QName() is specified as:

  fn:prefix-from-QName($arg as xs:QName?) as xs:NCNAME?

If prefix-from-QName() returns an empty string if there&apos;s no prefix, then the
signature needs to change to:

  fn:prefix-from-QName($arg as xs:QName?) as xs:token?

since an empty string isn&apos;t a legal xs:NCName.

The other option would be for prefix-from-QName() to return an empty sequence.
Either way, the spec needs to say what happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3629</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-04-27 20:03:14 +0000</bug_when>
    <thetext>The original intent in this function was not to return a zero-length string for
the case where there is no prefix, but to return an empty sequence. 

The resolution is: Change the description of function fn:prefix-from-QName to
say explicitly that it will return an empty sequence if the empty sequence is
input ***or if the QName has no prefix***.

Please let us know if you agree with this resolution of your issue, by adding a
comment to the issue record and changing the Status of the issue to Closed. Or,
if you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then also change the
Status of the record to Reopened. If you wish to record your dissent, but do not
wish to appeal the decision to the Director, then change the status of the
record to Closed. If we do not hear from you in the next two weeks, we will
assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3635</commentid>
    <comment_count>2</comment_count>
    <who name="Jeni Tennison">jeni</who>
    <bug_when>2005-04-28 10:04:35 +0000</bug_when>
    <thetext>I&apos;m content with the resolution of this issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>