<?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>3726</bug_id>
          
          <creation_ts>2006-09-14 08:11:25 +0000</creation_ts>
          <short_desc>Errors from fn:collection</short_desc>
          <delta_ts>2006-10-16 10:28:29 +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>Candidate Recommendation</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="Tim Mills">tim</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>11715</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-14 08:11:25 +0000</bug_when>
    <thetext>I may be completely off the mark here, but comparing the error codes from fn:collection and fn:doc, there seems to be an inconsistency.  Why does fn:collection not return FODC0004 when the argument is not a valid xs:anyURI?

fn:collection

If the $arg is a relative xs:anyURI, it is resolved against the value of the base-URI property from the static context. If $arg is not a valid xs:anyURI, an error is raised [err:FODC0002].

FODC0002 = Error retrieving resource.

fn:doc 
$uri is not a valid xs:anyURI, an error is raised [err:FODC0005]. If it is a relative URI Reference, it is resolved relative to the value of the base URI property from the static context. 

FODC0005 = Invalid argument to fn:collection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12012</commentid>
    <comment_count>1</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2006-09-25 19:37:43 +0000</bug_when>
    <thetext>Slightly related; there were some editorial fixes in this area previously:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3387


Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12408</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-10-12 19:20:38 +0000</bug_when>
    <thetext>On Sept. 19, the XSL and XML Query WGs agreed to resolved this bug report by making the suggested change to the second paragraph of fn:collection. This paragraph will now read:

&quot;If the $arg is a relative xs:anyURI, it is resolved against the value of the base-URI property from the static context. If $arg is not a valid xs:anyURI, an error is raised [err:FODC0004].&quot;

Please close this bug report if you agree with this resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12488</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-10-16 10:28:29 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>