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)

Parameters

inputfile
The URL of the source document to be transformed.
outputfile
The URL of the output file.

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.

Note:

This method is obsolete in version 1.1 of the .NET Framework. The setting of the XslTransform.XmlResolver property determines how the XSLT document() function is resolved. The recommended practice is to use the erload:System.Xml.Xsl.XslTransform.Transform method which takes an System.Xml.XmlResolver object as one of its arguments.

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