System.Xml.Xsl.XslCompiledTransform.Load Method

Loads and compiles the style sheet located at the specified URI.

Syntax

public void Load (string stylesheetUri)

Parameters

stylesheetUri
The URI of the style sheet.

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.

This method has the following behavior:

You can use the XslCompiledTransform.Load(string, XsltSettings, System.Xml.XmlResolver) overload to specify an System.Xml.XmlResolver with the necessary authentication credentials, or to specify different XSLT settings.

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