net.sf.saxon.s9api
public class XsltExecutable extends Object
An XsltExecutable is immutable, and therefore thread-safe. It is simplest to load a new XsltTransformer each time the stylesheet is to be run. However, the XsltTransformer is serially reusable within a single thread.
An XsltExecutable is created by using one of the compile methods on the
XsltCompiler class.
| Field Summary | |
|---|---|
| Processor | processor |
| PreparedStylesheet | pss |
| Constructor Summary | |
|---|---|
| protected | XsltExecutable(Processor processor, PreparedStylesheet pss) |
| Method Summary | |
|---|---|
| void | explain(Destination destination)
Produce a diagnostic representation of the compiled stylesheet, in XML form.
|
| PreparedStylesheet | getUnderlyingCompiledStylesheet()
Get the underlying implementation object representing the compiled stylesheet. |
| XsltTransformer | load()
Load the stylesheet to prepare it for execution. |
The detailed form of this representation is not stable (or even documented).
Parameters: destination the destination for the XML document containing the diagnostic representation of the compiled stylesheet
Since: 9.1
Returns: the underlying implementation of the compiled stylesheet
Returns: An XsltTransformer. The returned XsltTransformer can be used to set up the dynamic context for stylesheet evaluation, and to run the stylesheet.