Requirements - xspec/xspec GitHub Wiki
Java
XSpec requires a Java Runtime Environment.
The latest XSpec code is tested on Java 17 and 21. Testing in this repo uses the Eclipse Temurin distributions of OpenJDK.
Saxon
XSpec requires the Saxon XSLT processor running on Java.
Saxon can be downloaded from:
- Saxon HE (open source)
- Saxon PE/EE (commercial products)
XSpec is tested on Saxon 12 and 11. Only Saxon 12 is recommended, however.
Saxon 11 is deprecated
Saxon 11 is being actively maintained, but the vendor recommends version 12 as "the most stable and reliable release for production use" (link).
XQuery processor
Testing XQuery requires an XQuery 3.1 processor. XSpec is tested with the following XQuery processors:
Schematron implementation
Testing Schematron requires a Schematron implementation. XSpec already includes the SchXslt and XQS implementations of Schematron as part of the XSpec package.
Testing Schematron via XQS requires the BaseX XQuery processor. The mechanism depends on how you launch XSpec:
- (XSpec v3.3 or later) XProc 3: Include the optional BaseX step in your XProc setup.
- (XSpec v3.4 or later)
xspec.batorxspec.shscript: Install BaseX locally. Set theBASEX_JARenvironment variable to the path to your installedBaseX.jarfile before you run the script. - (XSpec v3.4 or later) Ant or the Run XSpec Test Oxygen transformation scenario: Install BaseX locally. Set the
xspec.basex.classpathAnt property to the path to your installedBaseX.jar.
XSpec is tested with SchXslt 1.10.1 and XQS 1.1.5.