Class DocumentBuilder
Class DomDestination
Class DynamicContext
Class DynamicError
Class EmptyEnumerator
Class ExtensionFunctionCall
Class NullDestination
Class ParameterDetails
Class Processor
Class QName
Class SchemaManager
Class SchemaValidator
Class Serializer
Class StandardLogger
Class StaticContext
Class StaticError
Class TextWriterDestination
Class TreeProtector
Class XPathCompiler
Class XPathExecutable
Class XPathSelector
Class XQueryCompiler
Class XQueryEvaluator
Class XQueryExecutable
Class XdmAnyFunctionType
Class XdmAnyItemType
Class XdmAnyNodeType
Class XdmAtomicType
Class XdmAtomicValue
Class XdmDestination
Class XdmEmptySequence
Class XdmFunctionItem
Class XdmItem
Class XdmItemType
Class XdmNode
Class XdmNodeKind
Class XdmSequenceType
Class XdmValue
Class XmlDestination
Class Xslt30Transformer
Class XsltCompiler
Class XsltExecutable
Class XsltPackage
Class XsltTransformer
Enum RecoveryPolicy
Enum SchemaValidationMode
Enum TreeModel
Enum WhitespacePolicy
Enum XdmAxis
Interface IMessageListener
Interface IQueryResolver
Interface IResultDocumentHandler
Interface IXdmEnumerator
Interface IXmlLocation
Interface SchemaResolver
public class Xslt30Transformer
Property Summary | |
---|---|
XdmItem |
GlobalContextItem Supply the context item to be used when evaluating global variables and parameters. The item to be used as the context item within the initializers of global variables and parameters. This argument can be null if no context item is to be supplied. |
Controller |
GetUnderlyingController Get the underlying Controller used to implement this XsltTransformer. This provides access to lower-level methods not otherwise available in the s9api interface. Note that classes and methods obtained by this route cannot be guaranteed stable from release to release. |
SchemaValidationMode |
SchemaValidationMode
The |
String |
BaseOutputURI |
XmlResolver |
InputXmlResolver
The |
IMessageListener |
MessageListener
Listener for messages output using <xsl:message>.
The caller may supply a message listener before calling If no message listener is supplied by the caller, message information will be written to the standard error stream. |
StandardLogger |
TraceFunctionDestination
Destination for output of messages using <trace()>.
If no message listener is supplied by the caller, message information will be written to the standard error stream. |
QName |
InitialMode initial mode for the transformation. This is used if the stylesheet is
subsequently invoked by any of the |
Method Summary | |
---|---|
void |
SetStylesheetParameters(System.Collections.Generic.Dictionary{Saxon.Api.QName , Saxon.Api.XdmValue} parameters) Supply the values of global stylesheet variables and parameters. |
void |
SetInitialTemplateParameters(System.Collections.Generic.Dictionary{Saxon.Api.QName parameters, Saxon.Api.XdmValue} tunnel, bool ) |
void |
ApplyTemplates(System.IO.Stream input, XmlDestination destination) Invoke the stylesheet by applying templates to a supplied Source document, sending the results (wrapped in a document node) to a given Destination. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}. |
XdmValue |
ApplyTemplates(System.IO.Stream input, System.Uri baseUri) Invoke the stylesheet by applying templates to a supplied Source document, returning the raw results as an {@link XdmValue}. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}. |
void |
ApplyTemplates(XdmValue selection, XmlDestination destination) Invoke the stylesheet by applying templates to a supplied input sequence, sending the results (wrapped in a document node) to a given Destination. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}. |
XdmValue |
ApplyTemplates(XdmValue selection) Invoke the stylesheet by applying templates to a supplied input sequence, returning the raw results. as an {@link XdmValue}. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}. |
void |
CallTemplate(QName templateName, XmlDestination destination) Invoke a transformation by calling a named template. The results of calling the template are wrapped in a document node, which is then sent to the specified destination. If {@link #setInitialTemplateParameters(java.util.Map, boolean)} has been called, then the parameters supplied are made available to the called template (no error occurs if parameters are supplied that are not used). |
XdmValue |
CallTemplate() |
XdmValue |
CallFunction(QName function, Saxon.Api.XdmValue[] argument) Call a public user-defined function in the stylesheet. |
void |
CallFunction() |
Property Detail |
---|
public XdmItem GlobalContextItem {get; set; }
Supply the context item to be used when evaluating global variables and parameters. The item to be used as the context item within the initializers of global variables and parameters. This argument can be null if no context item is to be supplied.
public Controller GetUnderlyingController {get; }
Get the underlying Controller used to implement this XsltTransformer. This provides access to lower-level methods not otherwise available in the s9api interface. Note that classes and methods obtained by this route cannot be guaranteed stable from release to release.
public SchemaValidationMode SchemaValidationMode {get; set; }
The SchemaValidationMode
to be used in this transformation, especially for documents
loaded using the doc()
, document()
, or collection()
functions.
public String BaseOutputURI {get; set; }
public XmlResolver InputXmlResolver {get; set; }
The XmlResolver
to be used at run-time to resolve and dereference URIs
supplied to the doc()
and document()
functions.
public IMessageListener MessageListener {get; set; }
The caller may supply a message listener before calling Run
;
the processor will then invoke the listener once for each message generated during
the transformation. Each message will be output as an object of type XdmNode
representing a document node.
If no message listener is supplied by the caller, message information will be written to the standard error stream.
Each message is presented as an XML document node. Calling ToString()
on the message object will usually generate an acceptable representation of the
message.
When the <xsl:message> instruction specifies terminate="yes"
,
the message is first notified using this interface, and then an exception is thrown
which terminates the transformation.
public StandardLogger TraceFunctionDestination {get; set; }
If no message listener is supplied by the caller, message information will be written to the standard error stream.
The supplied destination is ignored if a TraceListener
is in use.
Since 9.6. Changed in 9.6 to use a StandardLogger
public QName InitialMode {set; }
initial mode for the transformation. This is used if the stylesheet is
subsequently invoked by any of the applyTemplates
methods.
The value may be the name of the initial mode, or null to indicate the default (unnamed) mode
Method Detail |
---|
public void SetStylesheetParameters(System.Collections.Generic.Dictionary{Saxon.Api.QName , Saxon.Api.XdmValue} parameters)
Supply the values of global stylesheet variables and parameters.
Parameters:
-
parameters
-
public void SetInitialTemplateParameters(System.Collections.Generic.Dictionary{Saxon.Api.QName parameters, Saxon.Api.XdmValue} tunnel, bool )
parameters
-
tunnel
-
public void ApplyTemplates(System.IO.Stream input, XmlDestination destination)
Invoke the stylesheet by applying templates to a supplied Source document, sending the results (wrapped in a document node) to a given Destination. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}.
Parameters:input
-
destination
-
public XdmValue ApplyTemplates(System.IO.Stream input, System.Uri baseUri)
Invoke the stylesheet by applying templates to a supplied Source document, returning the raw results as an {@link XdmValue}. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}.
Parameters:input
-
baseUri
-
public void ApplyTemplates(XdmValue selection, XmlDestination destination)
Invoke the stylesheet by applying templates to a supplied input sequence, sending the results (wrapped in a document node) to a given Destination. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}.
Parameters:selection
-
select
attribute of xsl:apply-templates
)
destination
-
public XdmValue ApplyTemplates(XdmValue selection)
Invoke the stylesheet by applying templates to a supplied input sequence, returning the raw results. as an {@link XdmValue}. The invocation uses any initial mode set using {@link #setInitialMode(QName)}, and any template parameters set using {@link #setInitialTemplateParameters(java.util.Map, boolean)}.
Parameters:selection
-
select
attribute of xsl:apply-templates
)
public void CallTemplate(QName templateName, XmlDestination destination)
Invoke a transformation by calling a named template. The results of calling the template are wrapped in a document node, which is then sent to the specified destination. If {@link #setInitialTemplateParameters(java.util.Map, boolean)} has been called, then the parameters supplied are made available to the called template (no error occurs if parameters are supplied that are not used).
Parameters:templateName
-
xsl:initial-template
is used.
destination
-
public XdmValue CallTemplate()
public XdmValue CallFunction(QName function, Saxon.Api.XdmValue[] argument)
Call a public user-defined function in the stylesheet.
Parameters:function
-
argument
-
public void CallFunction()