System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 All the dynamic members are not designed to be thread safe. System.Object System.Obsolete

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

supports the XSLT 1.0 syntax. The XSLT style sheet must use the namespace http://www.w3.org/1999/XSL/Transform.

Additional arguments can also be added to the style sheet using the class. This class contains input parameters for the style sheet and extension objects which can be called from the style sheet.

To transform XML data:

Create an object.

Use the method to load the style sheet for the transformation. This method has several overloads and can load a style sheet using an , , , or a URL with the location of the file.

Use the method to transform the XML data. This method has several overloads and can handle different types of input and output. You can also specify an containing additional arguments to use as input during the transformation.

Security Considerations

When creating an application that uses the class, you should be aware of the following items and their implications:

Extension objects are enabled by default. If an object containing extension objects is passed to the method, they are utilized.

XSLT style sheets can include references to other files and embedded script blocks. A malicious user can exploit this by supplying you with data or style sheets that when executed will cause your system to process until the computer runs low on resources.

XSLT applications that run in a mixed trust environment can result in style sheet spoofing. For example, a malicious user can load an object with a harmful style sheet and hand it off to another user who subsequently calls the method and executes the transformation.

These security issues can be mitigated by not accepting objects, XSLT style sheets, or XML source data from untrusted sources.

Scripting Support

This class supports embedded scripting using the msxsl:script element.

In version 1.1 of the .NET Framework, the evidence of the style sheet determines what permissions are given to embedded scripts.

If the style sheet was loaded from a Uniform Resource Identifier (URI), the URI is used to create the evidence. This evidence includes the URI along with its site and zone.

If the style sheet was loaded using another source, you can provide evidence by passing a object to the method. Otherwise, the script assembly has full trust.

Semi-trusted callers: UnmanagedCode permission is required to compile the embedded script. ControlEvidence permission is required to provide to the method. A is thrown if the caller does not have the necessary permissions. See and for more information.

The msxsl:script element has the following requirements:

The msxsl:script element belongs to the urn:schemas-microsoft-com:xslt namespace. The style sheet must include the namespace declaration xmlns:msxsl=urn:schemas-microsoft-com:xslt.

The msxsl:script element can include a language attribute that specifies the scripting language to use. The value of the language attribute must be one of the following: C#, CSharp, VB, VisualBasic, JScript, or JavaScript. Because the language name is not case-sensitive, JavaScript and javascript are both valid. If a language attribute is not specified, it defaults to JScript.

The msxsl:script element must include an implements-prefix attribute that contains the prefix representing the namespace associated with the script block. This namespace must be defined within the style sheet. A style sheet can include multiple script blocks which are grouped by namespace. You cannot have script blocks with multiple languages within the same namespace. Script blocks can call a function defined in another script block, provided the script blocks reside within the same namespace. The contents of a script block are parsed according to the rules and syntax of the scripting language (supplied by the language attribute). For example, if you had a C# script block, comments would be prefixed by the // characters. The comments must be valid XML content.

Note It is recommended that you wrap script blocks in a CDATA section.

`<msxsl:script implements-prefix='xy' language='C#'> <![CDATA[ // Add code here. ]]> </msxsl:script>`

Functions can be declared within the msxsl:script element. The following table shows the namespaces that are supported by default.

Supported Namespaces

Description

System

System classes.

System.Collection

Collection classes.

System.Text

Text handling classes.

System.Xml

Core XML classes.

System.Xml.Xsl

XSLT classes.

System.Xml.XPath

XML Path Language (XPath) classes.

The supplied arguments and return values defined by the script functions must be one of the World Wide Web Consortium (W3C) types listed below. The following table details the mapping between the W3C types, either XPath or XSLT, and the corresponding .NET Framework classes.

W3C Type

Equivalent .NET class

String (XPath)

System.String

Boolean (XPath)

System.Boolean

Number (XPath)

System.Double

Result Tree Fragment (XSLT)

System.Xml.XPath.XPathNavigator

Node Set (XPath)

System.Xml.XPath.XPathNodeIterator

If the script function utilizes one of the following numeric types: Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, or Decimal, these types are coerced to Double, which maps to the W3C XPath type number.

An exception is thrown when a function is called that cannot convert the argument result to one of the required types.

msxsl:script and msxsl:node-list are the only functions from the urn:schemas-microsoft-com:xslt namespace that are supported by the class.

has the ability to utilize common language runtime (CLR) code as an extension mechanism. This is accomplished by passing an instance of a class to the class and calling its public methods within an XSLT style sheet. Methods that are defined with the params keyword, which allows an unspecified number of parameters to be passed, do not work correctly in this scenario. See params (C# Programmers Reference) for more details.

For more information see XSLT Transformations with the XslTransform Class.

Transforms XML data using an Extensible Stylesheet Language for Transformations (XSLT) style sheet.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added.

  Initializes a new instance of the class.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. External resources are resolved using an with no user credentials. If the style sheet(s) are located on a network resource which requires authentication, use the overload that takes an as one of its arguments and specify an with the necessary credentials.

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The URI of the style sheet is used to create evidence, which is applied to the assembly. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet specified by a URL.

  The URL that specifies the XSLT style sheet to load.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. External resources are resolved using an with no user credentials. If the style sheet(s) are located on a network resource which requires authentication, use the overload that takes an as one of its arguments and specify an with the necessary credentials.

  The style sheet loads from the current node of the through all its children. This enables you to use a portion of a document as the style sheet. After the method returns, the is positioned on the next node after the end of the style sheet. If the end of the document is reached, the is positioned at the end of file (EOF).

  If the style sheet contains entities, you should specify an that can resolve entities ( returns true). In this case, an can be used.

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the method. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object that contains the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. External resources are resolved using an with no user credentials. If the style sheet(s) are located on a network resource which requires authentication, use the overload that takes an as one of its arguments and specify an with the necessary credentials.

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the method. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. External resources are resolved using an with no user credentials. If the style sheet(s) are located on a network resource which requires authentication, use the overload that takes an as one of its arguments and specify an with the necessary credentials.

  The style sheet is loaded from the current position of the . To use just a portion of the loaded document as the style sheet, navigate to the node corresponding to the beginning of the style sheet. After the method returns, the is positioned at the beginning of the style sheet (on the xsl:style sheet node).

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the method. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object that contains the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

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

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

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The URI of the style sheet is used to create evidence, which is applied to the assembly. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet specified by a URL.

  The URL that specifies the XSLT style sheet to load. The to use to load the style sheet and any style sheet(s) referenced in xsl:import and xsl:include elements.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. The style sheet loads from the current node of the through all its children. This enables you to use a portion of a document as the style sheet.

  After the method returns, the is positioned on the next node after the end of the style sheet. If the end of the document is reached, the is positioned at the end of file (EOF).

  If the style sheet contains entities, you should specify an that can resolve entities ( returns true). In this case, an can be used.

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the method. For issues with the method and style sheets with embedded scripts see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object that contains the XSLT style sheet. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

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

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

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the method. For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the XSLT style sheet. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

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

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

  The style sheet is loaded from the current position of the . To use a portion of the loaded document as the style sheet, navigate to the node corresponding to the beginning of the style sheet. After the method returns, the is positioned at the beginning of the style sheet (on the xsl:style sheet node).

  If the style sheet contains embedded scripting, the script is compiled to an assembly. The assembly has full trust. The recommended practice is to provide evidence using the . For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  If the caller does not have UnmanagedCode permission, the embedded script is not compiled and a is thrown. See and for more information.

  Loads the XSLT style sheet contained in the .

  An object that contains the XSLT style sheet. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  This method loads the XSLT style sheet, including any style sheets referenced in xsl:include and xsl:import elements. The style sheet loads from the current node of the through all its children. This enables you to use a portion of a document as the style sheet.

  After the method returns, the is positioned on the next node after the end of the style sheet. If the end of the document is reached, the is positioned at the end of file (EOF).

  If the style sheet contains entities, you should specify an that can resolve entities ( returns true). In this case, an can be used.

  For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  There are different ways to provide evidence. The following table describes what type of evidence to provide for common user scenarios.

  Scenario

  Type of evidence to provide

  The XSLT style sheet is self-contained or comes from a code base that you trust.

  Use the evidence from your assembly.

  `XsltTransform xslt = new XslTransform(); xslt.Load(xslReader, resolver, this.GetType().Assembly.Evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is known, and there is a verifiable URL.

  Create evidence using the URL.

  `XsltTransform xslt = new XslTransform(); Evidence evidence = XmlSecureResolver.CreateEvidenceForUrl(stylesheetURL); xslt.Load(xslReader,resolver,evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is not known.

  Set evidence to null. Script blocks are not processed, the XSLT document() function is not supported, and privileged extension objects are disallowed.

  Additionally, you can also set the parameter to null. This ensures that xsl:import and xsl:include elements are not processed.

  The XSLT style sheet comes from an outside source. The origin of the source is not known, but you require script support.

  Request evidence from the caller. The API of the caller must provide a way to provide evidence, typically the class.

  Loads the XSLT style sheet contained in the . This method allows you to limit the permissions of the style sheet by specifying evidence.

  An object containing the style sheet to load. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved. The set on the assembly generated for the script block in the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  There are different ways to provide evidence. The following table describes what type of evidence to provide for common user scenarios.

  Scenario

  Type of evidence to provide

  The XSLT style sheet is self-contained or comes from a code base that you trust.

  Use the evidence from your assembly.

  `XsltTransform xslt = new XslTransform(); xslt.Load(style sheet, resolver, this.GetType().Assembly.Evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is known, and there is a verifiable URL.

  Create evidence using the URL.

  `XsltTransform xslt = new XslTransform(); Evidence evidence = XmlSecureResolver.CreateEvidenceForUrl(style sheetURL); xslt.Load(style sheet,resolver,evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is not known.

  Set evidence to null. Script blocks are not processed, the XSLT document() function is not supported, and privileged extension objects are disallowed.

  Additionally, you can also set the parameter to null. This ensures that xsl:import and xsl:include elements are not processed.

  The XSLT style sheet comes from an outside source. The origin of the source is not known, but you require script support.

  Request evidence from the caller. The API of the caller must provide a way to provide evidence, typically the class.

  Loads the XSLT style sheet contained in the . This method allows you to limit the permissions of the style sheet by specifying evidence.

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the XSLT style sheet. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved. The set on the assembly generated for the script block in the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  The style sheet is loaded from the current position of the . To use a portion of the loaded document as the style sheet, navigate to the node corresponding to the beginning of the style sheet. After the method returns, the is positioned at the beginning of the style sheet (on the xsl:style sheet node).

  For issues with the method and style sheets with embedded scripts, see article Q316755 in the Microsoft Knowledge Base at http://support.microsoft.com.

  There are different ways to provide evidence. The following table describes what type of evidence to provide for common user scenarios.

  Scenario

  Type of evidence to provide

  The XSLT style sheet is self-contained or comes from a code base that you trust.

  Use the evidence from your assembly.

  `XsltTransform xslt = new XslTransform(); xslt.Load(xslNav, resolver, this.GetType().Assembly.Evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is known, and there is a verifiable URL.

  Create evidence using the URL.

  `XsltTransform xslt = new XslTransform(); Evidence evidence = XmlSecureResolver.CreateEvidenceForUrl(style sheetURL); xslt.Load(xslNav,resolver,evidence);`

  The XSLT style sheet comes from an outside source. The origin of the source is not known.

  Set evidence to null. Script blocks are not processed, the XSLT document() function is not supported, and privileged extension objects are disallowed.

  Additionally, you can also set the parameter to null. This ensures that xsl:import and xsl:include elements are not processed.

  The XSLT style sheet comes from an outside source. The origin of the source is not known, but you require script support.

  Request evidence from the caller. The API of the caller must provide a way to provide evidence, typically the Evidence class.

  Loads the XSLT style sheet contained in the . This method allows you to limit the permissions of the style sheet by specifying evidence.

  An object containing the style sheet to load. The used to load any style sheets referenced in xsl:import and xsl:include elements. If this is null, external resources are not resolved. The set on the assembly generated for the script block in the XSLT style sheet.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

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

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

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

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

  The URL of the source document to be transformed. The URL of the output file.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.XmlReader `` ``

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

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

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  The are matched with the xsl:param elements defined in the style sheet. The xsl:output element is not supported when outputting to an (the xsl:output element is ignored). See Outputs from an XslTransform for more information.

  This method enables you to do an asynchronous transformation of the source document.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to an .

  An containing the results of the transformation.

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.XmlReader `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation has been performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  Because provides read-only output, the xsl:output element is ignored. See Outputs from an XslTransform for more information.

  This method enables you to do an asynchronous transformation of the source document.

  This method is obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  Transforms the XML data in the using the specified and outputs the result to an .

  An containing the results of the transformation.

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

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

  The URL of the source document to be transformed. The URL of the output file. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  The are matched with the xsl:param elements defined in the style sheet.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to a .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The stream to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  The are matched with the xsl:param elements defined in the style sheet.

  The encoding attribute on an xsl:output element is not supported when outputting to a . See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment, and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to a .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.XmlReader `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The xsl:output element is not supported when outputting to an (the xsl:output element is ignored). See Outputs from an XslTransform for more information.

  This method enables you to do an asynchronous transformation of the source document.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment, and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out, null);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to an .

  An containing the results of the transformation.

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  The are matched with the xsl:param elements defined in the style sheet. The xsl:output element is not supported when outputting to an (xsl:output is ignored). See Outputs from an XslTransform for more information.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to an .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation has been performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  Transforms the XML data in the using the specified and outputs the result to a .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The stream to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation is performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  The encoding attribute on an xsl:output element is not supported when outputting to a . See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  Transforms the XML data in the using the specified and outputs the result to a .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.XmlReader `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation has been performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  Because provides read-only output, the xsl:output element is ignored. See Outputs from an XslTransform for more information.

  This method enables you to do an asynchronous transformation of the source document.

  Transforms the XML data in the using the specified and outputs the result to an .

  An containing the results of the transformation.

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation is performed, the remains in its original state. This means that the node, that is current before the transformation process, remains the current node after the method has been called.

  The xsl:output element is not supported when outputting to an (xsl:output is ignored). See Outputs from an XslTransform for more information.

  This method is now obsolete. The setting of the property determines how the XSLT document() function is resolved. The recommended practice is to use the method which takes an object as one of its arguments.

  Transforms the XML data in the using the specified args and outputs the result to an .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out, null);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to a .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The stream to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet.

  The encoding attribute on an xsl:output element is not supported when outputting to a . See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out, null);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to a .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The xsl:output element is not supported when outputting to an (xsl:output is ignored). See Outputs from an XslTransform for more information.

  Transformations apply to the document as a whole. In other words, if you pass in a node other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. To transform a node fragment, you must create an containing just the node fragment and pass that to the method.

  The following example performs a transformation on a node fragment.

  `XslTransform xslt = new XslTransform(); xslt.Load("print_root.xsl"); XmlDocument doc = new XmlDocument(); doc.Load("library.xml"); // Create a new document containing just the node fragment. XmlNode testNode = doc.DocumentElement.FirstChild; XmlDocument tmpDoc = new XmlDocument(); tmpDoc.LoadXml(testNode.OuterXml); // Pass the document containing the node fragment // to the Transform method. Console.WriteLine("Passing " + tmpDoc.OuterXml + " to print_root.xsl"); xslt.Transform(tmpDoc, null, Console.Out, null);`

  The example uses the library.xml and print_root.xsl files as input and outputs the following to the console.

  `Passing <book genre="novel" ISBN="1-861001-57-5"><title>Pride And Prejudice</title></book> to print_root.xsl Root node is book.`

  library.xml

  `<library> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> </book> <book genre='novel' ISBN='1-81920-21-2'> <title>Hook</title> </book> </library>`

  print_root.xsl

  `<style sheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform" > <output method="text" /> <template match="/"> Root node is <value-of select="local-name(//*[position() = 1])" /> </template> </style sheet>`

  Transforms the XML data in the using the specified and outputs the result to an .

  An object implementing the interface. In the .NET Framework, this can be either an (typically an ), or an containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation has been performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  Transforms the XML data in the using the specified and outputs the result to a .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The stream to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation is performed, the remains in its original state. This means that the node, which is current before the transformation process, remains the current node after the method has been called.

  The encoding attribute on an xsl:output element is not supported when outputting to a . See Outputs from an XslTransform for specifics on which xsl:output attributes are supported.

  Transforms the XML data in the using the specified and outputs the result to a .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

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

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

  The are matched with the xsl:param elements defined in the style sheet. The transformation selections apply to the document as a whole. In other words, if the current node is set on a node tree other than the document root node, this does not prevent the transformation process from accessing all nodes in the loaded document. After the transformation is performed, the remains in its original state. This means that the node, that is current before the transformation process, remains the current node after the method has been called.

  The xsl:output element is not supported when outputting to an (xsl:output is ignored). See Outputs from an XslTransform for more information.

  Transforms the XML data in the using the specified args and outputs the result to an .

  An containing the data to be transformed. An containing the namespace-qualified arguments used as input to the transformation. The to which you want to output. The used to resolve the XSLT document() function. If this is null, the document() function is not resolved.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.XmlResolver It does not have getter.

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

  In version 1.1 of the .NET Framework, the trust level of the application determines the default behavior:

  Fully trusted code: A default with no user credentials is used to resolve the document() function. If authentication is required to access the external resource, use this property to specify an with the necessary credentials.

  Semi-trusted code: The property is set to null, which means the document() function is not resolved. Because full trust is required to specify an , this property also cannot be set.

  This resolver is used when the XSLT document() function is invoked. It is not used to resolve xsl:import and xsl:include elements referenced in the style sheet. To specify an to use to resolve xsl:import and xsl:include elements referenced in the style sheet, use the overload, which takes an as one of its arguments.

  This property is obsolete in version 1.1 of the .NET Framework. Specifying an using the method is the recommended practice. In this case, the is not cached after the method completes.

  Sets the used to resolve external resources when the method is called.

- Method
  System.Void `` `` `` Loads and compiles the stylesheet. A that represents the stylesheet document. A that is used to resolve inported or included documents. Not in use as yet. It will be used to load compiled stylesheet script assemblies.

  This method compiles the stylesheet from instance.

  If the input was not valid stylesheet, an will be thrown. Note that XSLT allows simplified syntax; the input does not always have XSLT "transform" (or "stylesheet") document element.

  If there were XSLT "include" or "import" elements, then parameter "resolver" is used to resolve external resources. If it was not explicitly provided, then the value of (that is set in advance) is used. If is was not set explicitly, then a instance is used.

  See also for the transformation details.

  Note: Evidence is not used as yet.