XslCompiledTransform.Transform Method (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.
Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Parameters
- input
- Type: System.Xml.XmlReader
An XmlReader containing the input document.
- arguments
- Type: System.Xml.Xsl.XsltArgumentList
An XsltArgumentList containing the namespace-qualified arguments used as input to the transform. This value can be null.
- results
- Type: System.IO.TextWriter
The TextWriter to which you want to output.
| Exception | Condition |
|---|---|
| ArgumentNullException | The input or results value is null. |
| XsltException | There was an error executing the XSLT transform. |
If the style sheet includes an XSLT document() function, it is resolved using an XmlUrlResolver with no user credentials. If the external resource is located on a network resource that requires authentication, use the overload that takes an XmlResolver as one of its arguments and specify an XmlResolver with the necessary credentials.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.