Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Load Method

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
XslCompiledTransform..::.Load Method

Compiles the style sheet.

  NameDescription
Public methodLoad(String)Loads and compiles the style sheet located at the specified URI.
Public methodLoad(XmlReader)Compiles the style sheet contained in the XmlReader.
Public methodLoad(IXPathNavigable)Compiles the style sheet contained in the IXPathNavigable object.
Public methodLoad(Type)Loads the compiled style sheet that was created using the XSLT Compiler (xsltc.exe).
Public methodLoad(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.
Public methodLoad(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.
Public methodLoad(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.
Public methodLoad(MethodInfo, array<Byte>[]()[], array<Type>[]()[])Loads a method from a style sheet compiled using the XSLTC.exe utility.
Top
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.

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?

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker