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 an System.Xml.XmlWriter.

Syntax

public void Transform (System.Xml.XmlReader input, System.Xml.XmlWriter results)

Parameters

input
The System.Xml.XmlReader containing the input document.
results
The System.Xml.XmlWriter to which you want to output.

Remarks

If the XSLT document() function is enabled, 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