The -T option on the command line (for example
net.sf.saxon.Transform or net.sf.saxon.Query) doesn't
enable full instruction tracing.
This has been caused by a change in the API: at compile
time, tracing has to be enabled by calling
Configuration#setCompileWithTracing(), while at
run-time, tracing is enabled by calling
The command line support code calls the old interface
Configuration.setTraceListener, which fails to invoke
setCompileWithTracing() as intended. A patch is being
added to the Subversion source to fix this.
The general effect of this is that using -T produces
only partial trace output. On occasions however it also
generates spurious run-time errors, such as "XPDY0002:
The context item is not set".