Compiles the style sheet.
Assembly: System.Xml (in System.Xml.dll)
Compiles the style sheet contained in the IXPathNavigable object.
|Load(IXPathNavigable, XsltSettings, XmlResolver)|
|Load(MethodInfo, Byte, Type)|
Loads a method from a style sheet compiled using the XSLTC.exe utility.
Loads and compiles the style sheet located at the specified URI.
|Load(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.
Loads the compiled style sheet that was created using the XSLT Compiler (xsltc.exe).
Compiles the style sheet contained in the XmlReader.
|Load(XmlReader, XsltSettings, XmlResolver)|
Although the overall performance of the XslCompiledTransform class is better than the XslTransform class, the 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?
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 Transform. The same style sheet compiled in Release mode will fail during . 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., but will later fail during