System.Xml.Xsl.XslCompiledTransform.Load Method

Loads and compiles the XSLT style sheet specified by the URI. 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 (string stylesheetUri, XsltSettings settings, System.Xml.XmlResolver stylesheetResolver)

Parameters

stylesheetUri
The URI of 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 the style sheet URI and any style sheets referenced in XSLT import and include elements.

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.

An System.Xml.XmlReader with default settings is used to load the style sheet. DTD processing is disabled on the System.Xml.XmlReader. If you require DTD processing, create an System.Xml.XmlReader with this feature enabled, and pass it to the erload:System.Xml.Xsl.XslCompiledTransform.Load method.

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