Converted XPath tests

We have added to the XSLT 3.0 test suite a “zipped” (actually .tar.gz) file containing the result of converting XPath tests from QT3 format to XSLT 3.0 test format. The effect is to enable you to test that XPath 3.0 (and optionally 3.1) expressions work in an XSLT context. All the XPath tests have been converted, with some exceptions where the environment dependencies were difficult to reproduce. Tests that depend on XPath 3.1 have been labelled as such, using the usual dependency mechanism.

The converter is of course written in XSLT, and the idea is that it can be re-run whenever the QT3 test suite changes sufficiently to justify it. Therefore, please don’t modify the generated tests. Of course the tests can be forked to create new tests in the “regular” XSLT test suite if there’s some area that needs better coverage.

One potential weakness is that all the XPath expressions run in the same XSLT context, that is, in the select expression of an xsl:variable instruction. This fails to test that they will also run in different contexts, for example in xsl:use-when or in xsl:evaluate.

To use the tests, unzip the archived file to a new directory location, and run your XSLT 3.0 test driver pointing at this location. The new location will contain a completely separate and self-contained test catalog.

Michael Kay
Saxonica

Credits: I wrote the initial version of the converter, Debbie did a lot of work to get it from the 80% stage to the 99% stage, and O’Neil did the final packaging. 

Received on Tuesday, 15 September 2015 14:36:58 UTC