<?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>28435</bug_id>
          
          <creation_ts>2015-04-08 09:57:07 +0000</creation_ts>
          <short_desc>[XT30TS] resolve-uri-022</short_desc>
          <delta_ts>2015-08-06 13:48:32 +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>XSLT 3.0 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Abel Braaksma">abel.online</assigned_to>
          <cc>abel.braaksma</cc>
    
    <cc>mike</cc>
          
          <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>119346</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2015-04-08 09:57:07 +0000</bug_when>
    <thetext>When run with an XSLT 2.0 processor, this test hits an error case since the template name &quot;xsl:initial-template&quot; is in a reserved namespace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119539</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-15 15:28:44 +0000</bug_when>
    <thetext>Oops, thanks! Fixed and pushed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122340</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-31 10:54:56 +0000</bug_when>
    <thetext>This test is basically a torture-test of edge cases in the RFC 3986 specification, especially the rules for removal of /./ and /../ segments in the URI.

It seems that the Java implementation, which Saxon relies on, produces different results in many cases. I would like to try and establish in which cases these variations are actually acceptable. Given the rather casual language of the spec, this isn&apos;t easy. However, there are comments in the test like

&lt;!-- variants of trying to get past the root, should return root path acc. to RFC, and *must* include root path leading &quot;/&quot; --&gt;

where the author of the test appears to have taken a view that some provisions in the RFC are mandatory, and others are only recommendations. Note that the spec for resolve-uri() explicitly states that where the RFC permits variations, so does resolve-uri().

I think we should start by making sure that the test doesn&apos;t mandate particular results for some of these edge cases in situations where the RFC allows flexibility.

The language of the RFC is complex. It doesn&apos;t use simple &quot;may&quot;, &quot;must&quot;, and &quot;should&quot;. It will sometimes describe a particular behaviour as common in practice, but erroneous. These are muddy waters, and I think we should allow implementations the benefit of the doubt where necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122479</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-08-06 01:11:14 +0000</bug_when>
    <thetext>When writing this test I have tried to be careful to only test for RFC parts that are mandatory. Such things are, I believe:

* base path with host name, but no trailing slash: slash must be appended, unless relative path is empty (5.4.3)
* relative path with more &quot;..&quot; segments than in the base path, authority component remains, host and path must be separated by slash (5.2.4 and 5.4.2)
* base path with dot-segments, after merging these must be removed (5.2.2 and 5.2.4)
* &apos;overlapping&apos; dotted segments, where removing dotted segments from right to left or left to right would yield different results. It should be from left to right (5.2.4)
* relative part starting with &quot;/&quot; and followed by dotted segments: these have no effect, &quot;/&quot; remains in place (5.2.4)

Most, if not all inspiration for this test comes from the examples in 5.4.1 and 5.4.2. I don&apos;t think any part of the RFC allows the resulting path segment to be a non-root path (i.e. without leading &quot;/&quot;), except for the case of an empty relative path and an empty path segment in the base path, but that is not covered by this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122493</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-08-06 13:48:32 +0000</bug_when>
    <thetext>I have decided to withdraw my objections to this test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>