System.Xml.Xsl.XslCompiledTransform.Transform Method

Executes the transform using the input document specified by the System.Xml.XmlReader object and outputs the results to a System.IO.TextWriter. The System.Xml.Xsl.XsltArgumentList provides additional run-time arguments.

Syntax

public void Transform (System.Xml.XmlReader input, XsltArgumentList arguments, System.IO.TextWriter results)

Parameters

input
An System.Xml.XmlReader containing the input document.
arguments
An System.Xml.Xsl.XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be null.
results
The System.IO.TextWriter to which you want to output.

Remarks

If the style sheet includes an XSLT document() function, it is resolved using an System.Xml.XmlUrlResolver with no user credentials. If the external resource is located on a network resource that requires authentication, use the overload that takes an System.Xml.XmlResolver as one of its arguments and specify an System.Xml.XmlResolver with the necessary credentials.

Requirements

Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0