System.Xml.Xsl.XslCompiledTransform.Load Method

Compiles the XSLT style sheet contained in the System.Xml.XPath.IXPathNavigable. The System.Xml.XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.

Syntax

public void Load (System.Xml.XPath.IXPathNavigable stylesheet, XsltSettings settings, System.Xml.XmlResolver stylesheetResolver)

Parameters

stylesheet
An object implementing the System.Xml.XPath.IXPathNavigable interface. In the Microsoft .NET Framework, this can be either an System.Xml.XmlNode (typically an System.Xml.XmlDocument), or an System.Xml.XPath.XPathDocument containing the style sheet.
settings
The System.Xml.Xsl.XsltSettings to apply to the style sheet. If this is null, the XsltSettings.Default setting is applied.
stylesheetResolver
The System.Xml.XmlResolver used to resolve any style sheets referenced in XSLT import and include elements. If this is null, external resources are not resolved.

Remarks

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

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