PhoenixmlDb.XSLT
XsltTransformer
Public API for XSLT transformations. Provides a simple interface for loading stylesheets and transforming XML.
#XsltTransformer
Namespace: PhoenixmlDb.Xslt
Public API for XSLT transformations. Provides a simple interface for loading stylesheets and transforming XML.
#Properties
| Name | Description |
|---|---|
SecondaryResultDocuments
|
Secondary result documents produced by xsl:result-document, keyed by href URI. Populated after each call to TransformAsync. |
#Methods
#AddInitialFunctionArgument(Object)
Adds a positional argument for the initial function call.
#LoadStylesheetAsync(String,Uri,Collections.Generic.Dictionary<String,String>)
Loads an XSLT stylesheet from a string.
#SetCollection(String,Collections.Generic.List<String>)
Registers a named collection of document file paths for fn:collection().
#SetInitialFunction(String,String)
Sets the initial function to call (XSLT 3.0 "call function" invocation).
#SetInitialMode(String,String)
Sets the initial mode.
#SetInitialModeSelect(String)
Sets an XPath expression to determine the initial match selection for the initial mode. The expression is evaluated with the source document as context, and templates are applied to each item in the resulting sequence.
#SetInitialTemplate(String,String)
Sets the initial named template.
#SetInitialTemplateParameter(PhoenixmlDb.Core.QName,Object)
Sets an initial template parameter (passed via xsl:with-param to the initial template call).
#SetInitialTunnelParameter(PhoenixmlDb.Core.QName,Object)
Sets an initial template tunnel parameter.
#SetParameter(String,Object)
Sets a stylesheet parameter with a typed value.
#SetParameter(String,String)
Sets a stylesheet parameter with a string value.
#SetSourceDocumentUri(Uri)
Sets the URI of the source document (for base-uri/document-uri resolution).
#SetSourceSelect(String)
Sets an XPath expression to select the initial context node from the source document. Example: "/doc" selects the document element named "doc" instead of the document root.
#TransformAsync(String,Threading.CancellationToken)
Transforms an XML string using the loaded stylesheet.