<?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>1856</bug_id>
          
          <creation_ts>2005-08-18 11:20:45 +0000</creation_ts>
          <short_desc>[F&amp;O] Error FORG0009 seems redundant</short_desc>
          <delta_ts>2007-02-25 23:41:23 +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>All</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="Colin Adams">colin</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>5437</commentid>
    <comment_count>0</comment_count>
    <who name="Colin Adams">colin</who>
    <bug_when>2005-08-18 11:20:45 +0000</bug_when>
    <thetext>I do not believe it is possible for this error to occur.

Because of:
&quot;If $relative is an absolute URI reference, it is returned unchanged.&quot;
&quot;If $relative or $base is not a valid xs:anyURI an error is raised [err:FORG0002].&quot;,

both $relative and $base are guarenteed to be valid URIs before the resolution
process starts, and relative is guarenteed to be a relative URI.
In which case, resolution cannot fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5439</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-08-18 12:03:46 +0000</bug_when>
    <thetext>I think we put this in deliberately. IIRC, you raised an interesting point
previously about non-hierarchic URIs (for example, URNs); we were also concerned
about the fact that the xs:anyURI type embraces IRIs, whereas the URI resolution
algorithms in RFC2396 and RFC3986 only cover URIs.  We therefore decided to
leave the spec a little open-ended as to exactly which resolution algorithm is
used, and this also leaves open the possibility that such a resolution algorithm
is not defined over the entire domain of the xs:anyURI type.

Also, 3986 says that the base URI must be absolute, so if you use that algorithm
then you would probably expect to get FORG0009 if you supply a non-absolute base
URI.

We came to the conclusion that there&apos;s a lot of fuzziness in the infrastructure
here, and it&apos;s not our remit to sort it out.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5440</commentid>
    <comment_count>2</comment_count>
    <who name="Colin Adams">colin</who>
    <bug_when>2005-08-18 12:58:48 +0000</bug_when>
    <thetext>Fair enough.

but I&apos;m intrigued about your point on a non-absolute base URI being supplied.
The spec says that the function expects it to be absolute.
So I was checking this first, and raising FORG0002 if this is not the case.

I guess this depends upon the wording &quot;expects&quot;. To me, if a function &quot;expects&quot;
an argument to be X, then it is an error if it is not an X (in which case
FORG0002 is the most appropriate message).

And if it doesn&apos;t mean that, then I&apos;m at a loss to know why it is mentioned at all.
If it is intended to allow a relative base for use with algorithms other than
RFC 3986, then I think the word expects should be dropped (or perhaps: &quot;expects
$base to usually be ..&quot;
In which case, I would raise FORG0009 without attempting resolution, as I use
the RFC 3986 algorithm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6504</commentid>
    <comment_count>3</comment_count>
    <who name="Ashok Malhotra">ashok.malhotra</who>
    <bug_when>2005-09-27 15:46:04 +0000</bug_when>
    <thetext>The WGs decided on 9/27 to close this bug with the follwing resolution.

1. Replace the first sentence of the summary with &quot;The purpose of this function
is  to enable a relative URI to be resolved against a absolute URI.&quot;

2. Convert the remainder of the summary into rules and add to the two existing
rules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14136</commentid>
    <comment_count>4</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:41:23 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>