The .NET Framework XSLT Processor

In the .NET Framework, the core class for XSLT is XslTransform. Located in the System.Xml.Xsl namespace, the XslTransform class implements the XSLT processor. You make use of this class in two steps: first you load the style sheet in the processor, and then you apply transformations to as many source documents as you need.

The XslTransform class supports only the XSLT 1.0 specification. A style sheet declares itself compliant with this version of the specification by including the following namespace:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">

By the way, note that the version attribute is mandatory to ensure the correctness of the style sheet document.

The key methods ...

Get Applied XML Programming for Microsoft® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.