net.sf.saxon.trace
Class AbstractTraceListener
java.lang.Object
net.sf.saxon.trace.AbstractTraceListener
- EventListener, TraceListener
public abstract class AbstractTraceListener
extends java.lang.Object
This is the standard trace listener used when the -T option is specified on the command line.
There are two variants, represented by subclasses: one for XSLT, and one for XQuery. The two variants
differ in that they present the trace output in terms of constructs used in the relevant host language.
escape
public String escape(String in)
Escape a string for XML output (in an attribute delimited by double quotes).
This method also collapses whitespace (since the value may be an XPath expression that
was originally written over several lines).
getOpeningAttributes
protected abstract String getOpeningAttributes()
getOutputDestination
public PrintStream getOutputDestination()
Get the output destination
setOutputDestination
public void setOutputDestination(PrintStream stream)
Set the output destination (default is System.err)
stream
- the output destination for tracing output
tag
protected abstract String tag(int construct)