Package net.sf.saxon.s9api
Class XsltExecutable
java.lang.Object
net.sf.saxon.s9api.XsltExecutable
An XsltExecutable represents the compiled form of a stylesheet.
To execute the stylesheet, it must first be loaded to form an
XsltTransformer
.
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XsltExecutable
(Processor processor, PreparedStylesheet pss) -
Method Summary
Modifier and TypeMethodDescriptionvoid
explain
(Destination destination) Produce a diagnostic representation of the compiled stylesheet, in XML form.Get the underlying implementation object representing the compiled stylesheet.load()
Load the stylesheet to prepare it for execution.
-
Constructor Details
-
XsltExecutable
-
-
Method Details
-
load
Load the stylesheet to prepare it for execution.- Returns:
- An XsltTransformer. The returned XsltTransformer can be used to set up the dynamic context for stylesheet evaluation, and to run the stylesheet.
-
explain
Produce a diagnostic representation of the compiled stylesheet, in XML form.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- Throws:
SaxonApiException
- Since:
- 9.1
-
getUnderlyingCompiledStylesheet
Get the underlying implementation object representing the compiled stylesheet. This provides an escape hatch into lower-level APIs. The object returned by this method may change from release to release.- Returns:
- the underlying implementation of the compiled stylesheet
-