DekGenius.com
[ Team LiB ] Previous Section Next Section

Chapter 20. The System.Xml.Xsl Namespace

The System.Xml.Xsl namespace provides support for Extensible Stylesheet Language Transformations (XSLT). XSLT is a W3C specification that describes how to transform one XML document into another with the use of stylesheet templates. For example, a common use of XSLT is to transform an XML document into standard HTML by transforming the specific elements of the input XML document into comparable HTML elements. XSLT templates use XPath expression syntax to specify which nodes of the input XML are transformed.

The XslTransform class constructs the transform object. It loads a stylesheet and applies its templates to an XML document to output the transformed data. The XsltArgumentList class creates objects for XSLT parameters that can be loaded into the stylesheet at runtime. XsltContext provides the XSLT processor with the current context node information used for XPath expression resolution. Figure 20-1 shows the types in this namespace.

Figure 20-1. The System.Xml.Xsl namespace
figs/dnxm_2001.gif
    [ Team LiB ] Previous Section Next Section