<?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>26755</bug_id>
          
          <creation_ts>2014-09-08 09:53:07 +0000</creation_ts>
          <short_desc>[XT30TS] current-output-uri-00[23]</short_desc>
          <delta_ts>2015-04-16 23:51:43 +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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="johnlumley">john</reporter>
          <assigned_to name="Abel Braaksma">abel.braaksma</assigned_to>
          <cc>abel.braaksma</cc>
    
    <cc>john</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>111165</commentid>
    <comment_count>0</comment_count>
    <who name="johnlumley">john</who>
    <bug_when>2014-09-08 09:53:07 +0000</bug_when>
    <thetext>Tests current-output-uri-00[23] assert

 ends-with(/out,&apos;fn/current-output-uri/results...&apos;) 

to check the determined output-uri for a normal and a result document. These locations are relative to the test sources, but the XTtest schema suggests that this might not be the correct location.

The documentation for assert-result-document/@uri states:

The uri corresponds to the URI used in the href [error in schema documentation - should be uri - jwL] attribute of the xsl:result-document instruction. It is supplied as a relative URI, interpreted as being relative to the implicit base output URI chosen by the test driver.

Hence it is possible (or even likely) that the outputs (and hence values) could be elsewhere.

A common alternative case might be where all results are held in a single separate file tree, such that:

current-output-uri-102:
&lt;assert&gt;ends-with(/out,&apos;results/current-output-uri-002.xml&apos;)

current-output-uri-103:
&lt;assert-result-document uri=&quot;results/second/current-output-uri-003.xml&quot;&gt;
   &lt;assert&gt;ends-with(/out,&apos;results/second/current-output-uri-002.xml&apos;)

These tests can be added as alternatives, but aren&apos;t particularly taxing.
I&apos;ll think about some more taxing possibilities.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111166</commentid>
    <comment_count>1</comment_count>
    <who name="johnlumley">john</who>
    <bug_when>2014-09-08 09:53:44 +0000</bug_when>
    <thetext>I&apos;ll work through some possible alternatives</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111169</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-09-08 13:07:12 +0000</bug_when>
    <thetext>*** Bug 26753 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119268</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-07 02:02:22 +0000</bug_when>
    <thetext>It looks like at Sept 11, 2014, these tests were changed to support multiple output locations and where merged six days later, where you seem to have settled for asserting for the locations ending with &quot;results/&lt;expected-filename&gt;&quot; format.

This seems to work well, at least in our case. I think we can close this bug, would you agree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119603</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-16 23:51:24 +0000</bug_when>
    <thetext>Resolving this bug as fixed, changes have been applied as described in comment#3.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>