net.sf.saxon.trans
public class CompilerInfo extends Object implements Serializable
Constructor Summary | |
---|---|
CompilerInfo()
Create an empty CompilerInfo object with default settings | |
CompilerInfo(CompilerInfo info)
Create a CompilerInfo object as a copy of another CompilerInfo object |
Method Summary | |
---|---|
ErrorListener | getErrorListener()
Get the ErrorListener being used during this compilation episode |
String | getMessageReceiverClassName()
Get the name of the class that will be instantiated to create a MessageEmitter,
to process the output of xsl:message instructions in XSLT.
|
OutputURIResolver | getOutputURIResolver()
Get the OutputURIResolver that will be used to resolve URIs used in the
href attribute of the xsl:result-document instruction.
|
int | getRecoveryPolicy()
Get the policy for handling recoverable errors. |
URIResolver | getURIResolver()
Get the URI Resolver being used in this compilation episode. |
boolean | isCompileWithTracing()
Determine whether trace hooks are included in the compiled code. |
boolean | isSchemaAware()
Ask whether schema-awareness has been requested by means of a call on
|
boolean | isVersionWarning()
Determine whether a warning is to be output when running against a stylesheet labelled
as version="1.0". |
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 | setMessageReceiverClassName(String messageReceiverClassName)
Set the name of the class that will be instantiated to create a MessageEmitter,
to process the output of xsl:message instructions in XSLT.
|
void | setOutputURIResolver(OutputURIResolver outputURIResolver)
Set the OutputURIResolver that will be used to resolve URIs used in the
href attribute of the xsl:result-document instruction.
|
void | setRecoveryPolicy(int policy)
Set the policy for handling recoverable errrors. |
void | setSchemaAware(boolean schemaAware)
Say that the stylesheet must be compiled to be schema-aware, even if it contains no
xsl:import-schema declarations. |
void | setURIResolver(URIResolver resolver)
Set the URI Resolver to be used in this compilation episode. |
void | setVersionWarning(boolean warn)
Determine whether a warning is to be output when running against a stylesheet labelled
as version="1.0". |
Parameters: info the existing CompilerInfo object
Since: 9.2
Returns: listener The error listener in use. This is notified of all errors detected during the compilation.
Since: 8.7
Returns: the full class name of the message emitter class.
Since: 9.2
Returns: the OutputURIResolver. If none has been supplied explicitly, the default OutputURIResolver is returned.
Since: 9.2
Returns: the current policy.
Since: 9.2
Returns: resolver The URIResolver in use. This is used to dereference URIs encountered in constructs such as xsl:include, xsl:import, and xsl:import-schema.
Since: 8.7
Returns: true if trace hooks are included, false if not.
Since: 8.9
Returns: true if schema-awareness has been requested
Returns: true if these messages are to be output.
Since: 9.2
Parameters: trueOrFalse true if trace code is to be compiled in, false otherwise
Since: 8.9
Parameters: listener The error listener to be used. This is notified of all errors detected during the compilation.
Since: 8.7
Parameters: messageReceiverClassName the message emitter class. This must implement net.sf.saxon.event.Emitter.
Since: 9.2
Parameters: outputURIResolver the OutputURIResolver to be used.
Since: 9.2
Parameters: policy the recovery policy to be used. The options are RECOVER_SILENTLY, RECOVER_WITH_WARNINGS, or DO_NOT_RECOVER.
Since: 9.2
Parameters: schemaAware If true, the stylesheet will be compiled with schema-awareness enabled even if it contains no xsl:import-schema declarations. If false, the stylesheet is treated as schema-aware only if it contains one or more xsl:import-schema declarations
Since: 9.2
Parameters: 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.
Since: 8.7
Parameters: warn true if these messages are to be output.
Since: 9.2