System.Xml.Xsl.XslTransform.Transform Method

Transforms the XML data in the input file and outputs the result to an output file.

Syntax

public void Transform (string inputfile, string outputfile, System.Xml.XmlResolver resolver)

Parameters

inputfile
The URL of the source document to be transformed.
outputfile
The URL of the output file.
resolver
The System.Xml.XmlResolver used to resolve the XSLT document() function. If this is null, the document() function is not resolved.

Remarks

Note:

The System.Xml.Xsl.XslTransform class is obsolete in the .NET Framework version 2.0. The System.Xml.Xsl.XslCompiledTransform class is the new XSLT processor. For more information, see Using the XslCompiledTransform Class and Migrating From the XslTransform Class.

System.Xml.Xsl.XslTransform supports the XSLT 1.0 syntax. The XSLT style sheet must include the namespace declaration xmlns:xsl= http://www.w3.org/1999/XSL/Transform.

Requirements

Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0