$xspec

$xspec — Are we running XSpec tests?

Parameter:
{}xspec
Defined in:
param.xsl
Used in:
param.xsl

Synopsis

  |$xspec as xs:string := 'false'

Description

This parameter is only true if the stylesheets are running in the context of the XSpec test harness. This allows tests to be crafted such that normal variations (Saxon HE vs. EE, the version of the stylesheets, or the current time, for example) don’t introduce spurious differences in the results, causing tests to fail.