O'Reilly logo

Applied XML Programming for Microsoft® .NET by Dino Esposito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required