Release XSpec v4.0.2
XSpec 4.0 supports testing your XProc 3 code and enhances the XProc harness for running test suites. These are the highlights of XSpec v4.0:
Common to Languages Under Test
- The XProc 3 pipelines for running XSpec tests can produce JUnit reports on the new
junitoutput port. To produce JUnit reports, set thejunit-enabledoption to'true'. - The XProc 3 pipelines for running XSpec tests have a new
inline-cssoption with default value'true', making the HTML report of test results a self-contained file. Compatibility Note: The HTML report file is larger due to embedded CSS. For the XSpec v3 behavior, setinline-cssto'false'. - XSpec is tested with XML Calabash 3.0.47.
XQuery
- XSpec is tested with BaseX 12.4.
Schematron
- SchXslt2 v1.10.3 replaces SchXslt, for testing Schematron schemas having an XSLT-based queryBinding.
Compatibility Notes
To specify a Schematron phase in your test, use a global
x:paramelement. With SchXslt2, the parameter name isQ{http://dmaus.name/ns/2023/schxslt}phase, notphase.SchXslt usage in XSpec is deprecated but still works.
XProc
- You can test your custom XProc 3 steps using XSpec and XML Calabash 3. You can execute your test suite from XML Calabash 3, Ant, or a shell/batch script. To learn more, see Getting Started with XSpec for Testing XProc.
Many thanks to all the XSpec contributors who made this release possible! They are listed in the release notes, plus additional contributions to the XSpec 4.0 software and wiki documentation were made by @birdya22, @cmarchand, and @AirQuick.
