XsltArgumentList Class (System.Xml.Xsl) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains a variable number of arguments which are either XSLT parameters or extension objects.
public ref class XsltArgumentList
public ref class XsltArgumentList sealed
public class XsltArgumentList
public sealed class XsltArgumentList
type XsltArgumentList = class
Public Class XsltArgumentList
Public NotInheritable Class XsltArgumentList
Inheritance
Remarks
This class is used by the Transform method. It allows parameters and extension objects to be invoked from within the style sheet.
When the parameters and objects are added to the XsltArgumentList, they are associated with a namespace qualified name and a namespace URI, respectively.
The following are advantages to passing an object rather than using an embedded script such as <msxsl:script>
:
- Provides better encapsulation and reuse of classes.
- Allows style sheets to be smaller and more easily maintained.
- Supports passing node fragments (through the XPathNavigator) to the style sheet.
For more information about using the XsltArgumentList, see XSLT Extension Objects and XSLT Parameters.