Environment Variables - xspec/xspec GitHub Wiki
The following environment variables can be used to configure xspec.bat and xspec.sh.
| Environment Variable | Description |
|---|---|
SAXON_CP |
Full classpath containing the Saxon jar file (and the XML Resolver jar file if support for XML Catalog is needed).¹ |
SAXON_HOME |
Location of a folder containing the Saxon jar file (and the XML Resolver jar file if support for XML Catalog is needed).¹ |
TEST_DIR |
Location for XSpec to save reports and temporary files. Defaults to xspec folder relative to the XSpec test file. |
XSPEC_HOME |
Location of the XSpec installation. Defaults to the parent of the folder containing xspec.bat or xspec.sh. If you move xspec.bat or xspec.sh you may have to define this environment variable. |
XSPEC_HTML_REPORT_THEME |
(New in v3.2) Color palette for HTML report, such as blackwhite (black on white), whiteblack (white on black), or classic (earlier green/pink design). Defaults to blackwhite. |
SCHEMATRON_XSLT_INCLUDE |
Location of an XSLT stylesheet to use for the first step of compiling a Schematron schema. The default is the built-in include.xsl. |
SCHEMATRON_XSLT_EXPAND |
Location of an XSLT stylesheet to use for the second step of compiling a Schematron schema. The default is the built-in expand.xsl. |
SCHEMATRON_XSLT_COMPILE |
Location of an XSLT stylesheet to use for the third step of compiling a Schematron schema. The default is the built-in compile-for-svrl.xsl. |
XQS_HOME_URI |
(New in v3.4) Absolute URI of XQS installation, ending with final slash. The default is the built-in lib/xqs/. |
XML_CATALOG |
Location of XML Catalog files. |
SAXON_CUSTOM_OPTIONS |
Command-line arguments passed to Saxon. For example, -expand:off -val:lax. This variable takes effect only when running the test. It has no effect when compiling the test or formatting the test result. |
Footnotes
- Either
SAXON_CPorSAXON_HOMEmust be provided.SAXON_CPhas precedence overSAXON_HOME.