net.sf.saxon.trans
Class CompilerInfo
java.lang.Object
net.sf.saxon.trans.CompilerInfo
public class CompilerInfo
extends java.lang.Object
This class exists to hold information associated with a specific XSLT compilation episode.
In JAXP, the URIResolver and ErrorListener used during XSLT compilation are those defined in the
TransformerFactory. The .NET API, however, allows finer granularity, and this class exists to
support that.
ErrorListener | getErrorListener() - Get the ErrorListener being used during this compilation episode
|
URIResolver | getURIResolver() - Get the URI Resolver being used in this compilation episode.
|
boolean | isCompileWithTracing() - Determine whether trace hooks are included in the compiled code.
|
void | setCompileWithTracing(boolean trueOrFalse) - Set whether trace hooks are to be included in the compiled code.
|
void | setErrorListener(ErrorListener listener) - Set the ErrorListener to be used during this compilation episode
|
void | setURIResolver(URIResolver resolver) - Set the URI Resolver to be used in this compilation episode.
|
getErrorListener
public ErrorListener getErrorListener()
Get the ErrorListener being used during this compilation episode
- listener The error listener in use. This is notified of all errors detected during the
compilation.
getURIResolver
public URIResolver getURIResolver()
Get the URI Resolver being used in this compilation episode.
- resolver The URIResolver in use. This is used to dereference URIs encountered in constructs
such as xsl:include, xsl:import, and xsl:import-schema.
isCompileWithTracing
public boolean isCompileWithTracing()
Determine whether trace hooks are included in the compiled code.
- true if trace hooks are included, false if not.
setCompileWithTracing
public void setCompileWithTracing(boolean trueOrFalse)
Set whether trace hooks are to be included in the compiled code. To use tracing, it is necessary
both to compile the code with trace hooks included, and to supply a TraceListener at run-time
trueOrFalse
- true if trace code is to be compiled in, false otherwise
setErrorListener
public void setErrorListener(ErrorListener listener)
Set the ErrorListener to be used during this compilation episode
listener
- The error listener to be used. This is notified of all errors detected during the
compilation.
setURIResolver
public void setURIResolver(URIResolver resolver)
Set the URI Resolver to be used in this compilation episode.
resolver
- The URIResolver to be used. This is used to dereference URIs encountered in constructs
such as xsl:include, xsl:import, and xsl:import-schema.