This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26755 - [XT30TS] current-output-uri-00[23]
Summary: [XT30TS] current-output-uri-00[23]
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
: 26753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-08 09:53 UTC by johnlumley
Modified: 2015-04-16 23:51 UTC (History)
2 users (show)

See Also:


Attachments

Description johnlumley 2014-09-08 09:53:07 UTC
Tests current-output-uri-00[23] assert

 ends-with(/out,'fn/current-output-uri/results...') 

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:
<assert>ends-with(/out,'results/current-output-uri-002.xml')

current-output-uri-103:
<assert-result-document uri="results/second/current-output-uri-003.xml">
   <assert>ends-with(/out,'results/second/current-output-uri-002.xml')

These tests can be added as alternatives, but aren't particularly taxing.
I'll think about some more taxing possibilities.
Comment 1 johnlumley 2014-09-08 09:53:44 UTC
I'll work through some possible alternatives
Comment 2 Abel Braaksma 2014-09-08 13:07:12 UTC
*** Bug 26753 has been marked as a duplicate of this bug. ***
Comment 3 Abel Braaksma 2015-04-07 02:02:22 UTC
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 "results/<expected-filename>" format.

This seems to work well, at least in our case. I think we can close this bug, would you agree?
Comment 4 Abel Braaksma 2015-04-16 23:51:24 UTC
Resolving this bug as fixed, changes have been applied as described in comment#3.