System.Xml.Xsl.XslCompiledTransform.Transform Method

Executes the transform using the input document specified by the URI and outputs the results to a System.IO.TextWriter.

Syntax

public void Transform (string inputUri, XsltArgumentList arguments, System.IO.TextWriter results)

Parameters

inputUri
The URI of 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

This method uses a default System.Xml.XmlUrlResolver with no user credentials to resolve the input document and any instances of the XSLT document() function found in the style sheet. If any of these resources are 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.

An System.Xml.XmlReader with default settings is used to load the input document. DTD processing is disabled on the System.Xml.XmlReader. If you require DTD processing, create an System.Xml.XmlReader with this feature enabled, and pass it to the erload:System.Xml.Xsl.XslCompiledTransform.Transform method.

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