Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (44 sloc) 2.82 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs ms.assetid caps.latest.revision author ms.author manager
Using the XslCompiledTransform Class
03/30/2017
.net
dotnet-standard
article
VB
CSharp
C++
jsharp
f9b074f6-d6f4-49dd-a093-df510bf0cf7b
3
mairaw
mairaw
wpickett

Using the XslCompiledTransform Class

The xref:System.Xml.Xsl.XslCompiledTransform class is the Microsoft .NET Framework XSLT processor. This class is used to compile style sheets and execute XSLT transformations.

[!NOTE] Although the overall performance of the xref:System.Xml.Xsl.XslCompiledTransform class is better than the xref:System.Xml.Xsl.XslTransform class, the xref:System.Xml.Xsl.XslCompiledTransform.Load%2A method of the xref:System.Xml.Xsl.XslCompiledTransform class might perform more slowly than the xref:System.Xml.Xsl.XslTransform.Load%2A method of the xref:System.Xml.Xsl.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?

In This Section

Inputs to the XslCompiledTransform Class
Describes the available XSLT input options.

Output Options on the XslCompiledTransform Class
Describes the available XSLT output options.

Resolving External Resources During XSLT Processing
Discusses using the xref:System.Xml.XmlResolver class to resolve external resources.

Extending XSLT Style Sheets
Discusses how XSLT extensions are supported.

Recoverable XSLT Errors Lists discretionary behaviors allowed by the World Wide Web Consortium (W3C) XSLT 1.0 recommendation and describes how these behaviors are handled by the xref:System.Xml.Xsl.XslCompiledTransform class.
How to: Transform a Node Fragment Describes how to transform a node fragment.

Related Sections

Migrating From the XslTransform Class
Discusses how to migrate code from the xref:System.Xml.Xsl.XslTransform class

See Also

xref:System.Xml.Xsl.XsltSettings
xref:System.Xml.Xsl.XsltMessageEncounteredEventArgs