<?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>4232</bug_id>
          
          <creation_ts>2007-01-16 11:37:31 +0000</creation_ts>
          <short_desc>Incorrect expected error for fn-collection-3</short_desc>
          <delta_ts>2007-03-09 17:09:37 +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>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Jones">nick</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>13577</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-01-16 11:37:31 +0000</bug_when>
    <thetext>fn-collection-3

fn:collection(&quot;invalidURI&lt;&gt;&quot;)

expectes FODC0002

15.5.6 of F+O states: &quot;if $arg is not a valid xs:anyURI, an error is raised [err:FODC0004].&quot;

(For what its worth, the recently added K2-SeqCollectionFunc-1

collection(&quot;http:\\invalid&gt;URI\someURI&quot;)

is testing the same thing, but with the correct error)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13579</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-16 12:38:27 +0000</bug_when>
    <thetext>You are assuming that &quot;invalidURI&lt;&gt;&quot; is not a valid instance of xs:anyURI.

XML Schema Part 2 says that a string is a valid instance of xs:anyURI if it becomes a valid URI after you apply the escaping procedure defined in section 5.4 of XLink. That procedure escapes &quot;excluded characters listed in Section 2.4 of [IETF RFC 2396], except for the number sign (#) and percent sign (%)&quot;. That set includes &quot;&lt;&quot; and &quot;&gt;&quot;. So &quot;invalidURI&lt;&gt;&quot; is in fact valid.

As far as I can see, &quot;http:\\invalid&gt;URI\someURI&quot; is also a valid instance of xs:anyURI, for the same reasons. It&apos;s pretty meaningless as a URI, but the spec doesn&apos;t require it to me meaningful, only syntactically valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13584</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-01-16 13:16:21 +0000</bug_when>
    <thetext>Ah, yes, thanks I was making that assumption.

But even once it is escaped I still think the error is wrong as then: &quot;If Available collections provides no mapping for the string, an error is raised [err:FODC0004].&quot; applies.

err:FODC0002 is only thrown if there is no arguement and no default collection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14363</commentid>
    <comment_count>3</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2007-03-09 16:37:44 +0000</bug_when>
    <thetext>Hey Nick:

Thanks for teh comment.  It looks like FODC0004 is a morte appropriate 
error code for this case.  Changed the expected error to FODC0004.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14367</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-03-09 17:09:37 +0000</bug_when>
    <thetext>Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>