public class XsltExecutable
extends java.lang.Object
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.
Modifier and Type | Class | Description |
---|---|---|
class |
XsltExecutable.ParameterDetails |
Inner class containing information about a global parameter to a compiled stylesheet
|
Modifier and Type | Field | Description |
---|---|---|
(package private) Processor |
processor |
|
(package private) PreparedStylesheet |
pss |
Modifier | Constructor | Description |
---|---|---|
protected |
XsltExecutable(Processor processor,
PreparedStylesheet pss) |
Modifier and Type | Method | Description |
---|---|---|
void |
explain(Destination destination) |
Produce a diagnostic representation of the compiled stylesheet, in XML form.
|
java.util.HashMap<QName,XsltExecutable.ParameterDetails> |
getGlobalParameters() |
Get the names of the xsl:param elements defined in this stylesheet, with details
of each parameter including its required type, and whether it is required or optional
|
PreparedStylesheet |
getUnderlyingCompiledStylesheet() |
Get the underlying implementation object representing the compiled stylesheet.
|
WhitespaceStrippingPolicy |
getWhitespaceStrippingPolicy() |
Get the whitespace stripping policy defined by this stylesheet, that is, the policy
defined by the xsl:strip-space and xsl:preserve-space elements in the stylesheet
|
XsltTransformer |
load() |
Load the stylesheet to prepare it for execution.
|
Processor processor
PreparedStylesheet pss
protected XsltExecutable(Processor processor, PreparedStylesheet pss)
public XsltTransformer load()
public void explain(Destination destination) throws SaxonApiException
The detailed form of this representation is not stable (or even documented).
destination
- the destination for the XML document containing the diagnostic representation
of the compiled stylesheetSaxonApiException
public WhitespaceStrippingPolicy getWhitespaceStrippingPolicy()
DocumentBuilder
.public java.util.HashMap<QName,XsltExecutable.ParameterDetails> getGlobalParameters()
XsltExecutable.ParameterDetails
objects giving information about the
corresponding parameter.public PreparedStylesheet getUnderlyingCompiledStylesheet()