Skip to main content
.NET Framework Class Library
XslCompiledTransform..::.Transform Method





Executes the XSLT transformation.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodTransform(IXPathNavigable, XmlWriter)Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter.
Public methodTransform(String, String)Executes the transform using the input document specified by the URI and outputs the results to a file.
Public methodTransform(String, XmlWriter)Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter.
Public methodTransform(XmlReader, XmlWriter)Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter.
Public methodTransform(IXPathNavigable, XsltArgumentList, Stream)Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to a stream. The XsltArgumentList provides additional runtime arguments.
Public methodTransform(IXPathNavigable, XsltArgumentList, TextWriter)Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an TextWriter. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(IXPathNavigable, XsltArgumentList, XmlWriter)Executes the transform using the input document specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(String, XsltArgumentList, Stream)Executes the transform using the input document specified by the URI and outputs the results to stream. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(String, XsltArgumentList, TextWriter)Executes the transform using the input document specified by the URI and outputs the results to a TextWriter.
Public methodTransform(String, XsltArgumentList, XmlWriter)Executes the transform using the input document specified by the URI and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(XmlReader, XsltArgumentList, Stream)Executes the transform using the input document specified by the XmlReader object and outputs the results to a stream. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(XmlReader, XsltArgumentList, TextWriter)Executes the transform using the input document specified by the XmlReader object and outputs the results to a TextWriter. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(XmlReader, XsltArgumentList, XmlWriter)Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments.
Public methodTransform(IXPathNavigable, XsltArgumentList, XmlWriter, XmlResolver)Executes the transform by using the input document that is specified by the IXPathNavigable object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document() function.
Public methodTransform(XmlReader, XsltArgumentList, XmlWriter, XmlResolver)Executes the transform using the input document specified by the XmlReader object and outputs the results to an XmlWriter. The XsltArgumentList provides additional run-time arguments and the XmlResolver resolves the XSLT document() function.
Top
Remarks
NoteNote

There are differences between XSLT compiled in Debug mode and XSLT compiled in Release mode. In some situations, style sheets compiled in Debug mode will not throw errors during Load, but will later fail during Transform. The same style sheet compiled in Release mode will fail during Load. An example of such behavior is when a variable that is not of a node-set type is assigned to an expression where a node-set is required.