Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​Xsl.​XslCompiledTransform

Assembly: System.Xml.ReaderWriter

Inheritance: object → XslCompiledTransform

Transforms XML data using an XSLT style sheet.

Properties

OutputSettings
Gets an <see cref="T:System.Xml.XmlWriterSettings" /> object that contains the output information derived from the <c>xsl:output</c> element of the style sheet.

Methods

public void
Load​(Reflection.​MethodInfo executeMethod, byte[] queryData, Type[] earlyBoundTypes)
Loads a method from a style sheet compiled using the <see langword="XSLTC.exe" /> utility.
executeMethod A <see cref="T:System.Reflection.MethodInfo" /> object representing the compiler-generated <c>execute</c> method of the compiled style sheet.
queryData A byte array of serialized data structures in the <c>staticData</c> field of the compiled style sheet as generated by the <see cref="M:System.Xml.Xsl.XslCompiledTransform.CompileToType(System.Xml.XmlReader,System.Xml.Xsl.XsltSettings,System.Xml.XmlResolver,System.Boolean,System.Reflection.Emit.TypeBuilder,System.String)" /> method.
earlyBoundTypes An array of types stored in the compiler-generated <c>ebTypes</c> field of the compiled style sheet.
public void
Load​(string stylesheetUri)
Loads and compiles the style sheet located at the specified URI.
stylesheetUri The URI of the style sheet.
public void
Load​(string stylesheetUri, XsltSettings settings, XmlResolver stylesheetResolver)
Loads and compiles the XSLT style sheet specified by the URI. The <see cref="T:System.Xml.XmlResolver" /> resolves any XSLT <c>import</c> or <c>include</c> elements and the XSLT settings determine the permissions for the style sheet.
stylesheetUri The URI of the style sheet.
settings The <see cref="T:System.Xml.Xsl.XsltSettings" /> to apply to the style sheet. If this is <see langword="null" /> , the <see cref="P:System.Xml.Xsl.XsltSettings.Default" /> setting is applied.
stylesheetResolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the style sheet URI and any style sheets referenced in XSLT <c>import</c> and <c>include</c> elements.
public void
Load​(Type compiledStylesheet)
Loads the compiled style sheet that was created using the XSLT Compiler (xsltc.exe).
compiledStylesheet The name of the class that contains the compiled style sheet. This is usually the name of the style sheet. Unless otherwise specified, the xsltc.exe tool uses the name of the style sheet for the class and assembly names.
public void
Load​(XmlReader stylesheet)
Compiles the style sheet contained in the <see cref="T:System.Xml.XmlReader" /> .
stylesheet An <see cref="T:System.Xml.XmlReader" /> containing the style sheet.
public void
Load​(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
Compiles the XSLT style sheet contained in the <see cref="T:System.Xml.XmlReader" /> . The <see cref="T:System.Xml.XmlResolver" /> resolves any XSLT <c>import</c> or <c>include</c> elements and the XSLT settings determine the permissions for the style sheet.
stylesheet The <see cref="T:System.Xml.XmlReader" /> containing the style sheet.
settings The <see cref="T:System.Xml.Xsl.XsltSettings" /> to apply to the style sheet. If this is <see langword="null" /> , the <see cref="P:System.Xml.Xsl.XsltSettings.Default" /> setting is applied.
stylesheetResolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve any style sheets referenced in XSLT <c>import</c> and <c>include</c> elements. If this is <see langword="null" /> , external resources are not resolved.
public void
Load​(XPath.​IXPathNavigable stylesheet)
Compiles the style sheet contained in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object.
stylesheet An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the style sheet.
public void
Load​(XPath.​IXPathNavigable stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
Compiles the XSLT style sheet contained in the <see cref="T:System.Xml.XPath.IXPathNavigable" /> . The <see cref="T:System.Xml.XmlResolver" /> resolves any XSLT <c>import</c> or <c>include</c> elements and the XSLT settings determine the permissions for the style sheet.
stylesheet An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the style sheet.
settings The <see cref="T:System.Xml.Xsl.XsltSettings" /> to apply to the style sheet. If this is <see langword="null" /> , the <see cref="P:System.Xml.Xsl.XsltSettings.Default" /> setting is applied.
stylesheetResolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve any style sheets referenced in XSLT <c>import</c> and <c>include</c> elements. If this is <see langword="null" /> , external resources are not resolved.
public void
Transform​(string inputUri, string resultsFile)
Executes the transform using the input document specified by the URI and outputs the results to a file.
inputUri The URI of the input document.
resultsFile The URI of the output file.
public void
Transform​(string inputUri, XmlWriter results)
Executes the transform using the input document specified by the URI and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> .
inputUri The URI of the input document.
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(string inputUri, XsltArgumentList? arguments, IO.​Stream results)
Executes the transform using the input document specified by the URI and outputs the results to stream. The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
inputUri The URI of the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The stream to which you want to output.
public void
Transform​(string inputUri, XsltArgumentList? arguments, IO.​TextWriter results)
Executes the transform using the input document specified by the URI and outputs the results to a <see cref="T:System.IO.TextWriter" /> .
inputUri The URI of the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.IO.TextWriter" /> to which you want to output.
public void
Transform​(string inputUri, XsltArgumentList? arguments, XmlWriter results)
Executes the transform using the input document specified by the URI and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
inputUri The URI of the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(XmlReader input, XmlWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XmlReader" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> .
input The <see cref="T:System.Xml.XmlReader" /> containing the input document.
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(XmlReader input, XsltArgumentList? arguments, IO.​Stream results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XmlReader" /> object and outputs the results to a stream. The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
input An <see cref="T:System.Xml.XmlReader" /> containing the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The stream to which you want to output.
public void
Transform​(XmlReader input, XsltArgumentList? arguments, IO.​TextWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XmlReader" /> object and outputs the results to a <see cref="T:System.IO.TextWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
input An <see cref="T:System.Xml.XmlReader" /> containing the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.IO.TextWriter" /> to which you want to output.
public void
Transform​(XmlReader input, XsltArgumentList? arguments, XmlWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XmlReader" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
input An <see cref="T:System.Xml.XmlReader" /> containing the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(XmlReader input, XsltArgumentList? arguments, XmlWriter results, XmlResolver? documentResolver)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XmlReader" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments and the XmlResolver resolves the XSLT <c>document()</c> function.
input An <see cref="T:System.Xml.XmlReader" /> containing the input document.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
documentResolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <c>document()</c> function. If this is <see langword="null" /> , the <c>document()</c> function is not resolved.
public void
Transform​(XPath.​IXPathNavigable input, XmlWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> .
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? arguments, IO.​Stream results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object and outputs the results to a stream. The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional runtime arguments.
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The stream to which you want to output.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? arguments, IO.​TextWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object and outputs the results to an <see cref="T:System.IO.TextWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.IO.TextWriter" /> to which you want to output.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? arguments, XmlWriter results)
Executes the transform using the input document specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments.
input An object implementing the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface. In the Microsoft .NET Framework, this can be either an <see cref="T:System.Xml.XmlNode" /> (typically an <see cref="T:System.Xml.XmlDocument" /> ), or an <see cref="T:System.Xml.XPath.XPathDocument" /> containing the data to be transformed.
arguments An <see cref="T:System.Xml.Xsl.XsltArgumentList" /> containing the namespace-qualified arguments used as input to the transform. This value can be <see langword="null" /> .
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <c>xsl:output</c> element, you should create the <see cref="T:System.Xml.XmlWriter" /> using the <see cref="T:System.Xml.XmlWriterSettings" /> object returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
public void
Transform​(XPath.​IXPathNavigable input, XsltArgumentList? arguments, XmlWriter results, XmlResolver? documentResolver)
Executes the transform by using the input document that is specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object and outputs the results to an <see cref="T:System.Xml.XmlWriter" /> . The <see cref="T:System.Xml.Xsl.XsltArgumentList" /> provides additional run-time arguments and the <see cref="T:System.Xml.XmlResolver" /> resolves the XSLT <see langword="document()" /> function.
input The document to transform that is specified by the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object.
arguments Argument list as <see cref="T:System.Xml.Xsl.XsltArgumentList" /> .
results The <see cref="T:System.Xml.XmlWriter" /> to which you want to output. If the style sheet contains an <see langword="xsl:output" /> element, you should create the <see cref="T:System.Xml.XmlWriter" /> by using the <see cref="T:System.Xml.XmlWriterSettings" /> object that is returned from the <see cref="P:System.Xml.Xsl.XslCompiledTransform.OutputSettings" /> property. This ensures that the <see cref="T:System.Xml.XmlWriter" /> has the correct output settings.
documentResolver The <see cref="T:System.Xml.XmlResolver" /> used to resolve the XSLT <see langword="document()" /> function. If this is <see langword="null" /> , the <see langword="document()" /> function is not resolved.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object