Load Method

XslCompiledTransform.Load Method

 

Compiles the style sheet.

Namespace:   System.Xml.Xsl
Assembly:  System.Xml (in System.Xml.dll)

NameDescription
System_CAPS_pubmethodLoad(IXPathNavigable)

Compiles the style sheet contained in the IXPathNavigable object.

System_CAPS_pubmethodLoad(IXPathNavigable, XsltSettings, XmlResolver)

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

System_CAPS_pubmethodLoad(MethodInfo, Byte[], Type[])

Loads a method from a style sheet compiled using the XSLTC.exe utility.

System_CAPS_pubmethodLoad(String)

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

System_CAPS_pubmethodLoad(String, XsltSettings, XmlResolver)

Loads and compiles the XSLT style sheet specified by the URI. The XmlResolver resolves any XSLT import or include elements and the XSLT settings determine the permissions for the style sheet.

System_CAPS_pubmethodLoad(Type)

Loads the compiled style sheet that was created using the XSLT Compiler (xsltc.exe).

System_CAPS_pubmethodLoad(XmlReader)

Compiles the style sheet contained in the XmlReader.

System_CAPS_pubmethodLoad(XmlReader, XsltSettings, XmlResolver)

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

Although the overall performance of the XslCompiledTransform class is better than the XslTransform class, the Load method of the XslCompiledTransform class might perform more slowly than the Load method of the XslTransform class the first time it is called on a transformation. This is because the XSLT file must be compiled before it is loaded. For more information, see the following blog post: XslCompiledTransform Slower than XslTransform?

System_CAPS_noteNote

There are differences between XSLT compiled in Debug mode and XSLT compiled in Release mode. In some situations, style sheets compiled in Debug mode will not throw errors during Load, but will later fail during Transform. The same style sheet compiled in Release mode will fail during Load. An example of such behavior is when a variable that is not of a node-set type is assigned to an expression where a node-set is required.

Return to top
Show:
© 2016 Microsoft