XSLT Extension Objects
Let’s complete our examination of transformations by analyzing the XSLT extension objects. As mentioned, the XsltArgumentList class can contain both parameters and extension objects. Parameters are simply value types, whereas extension objects are instances of .NET classes. When passed to the Transform method, both parameters and extension objects can be invoked from style sheets.
The behavior of a style sheet can be extended in various ways. For example, you can use the <xsl:eval> instruction to run VBScript or JScript interpreted code. Before the advent of the .NET Framework, this was the only option available. With the .NET Framework, given the other characteristics of the XSLT processor, the <xsl:eval> instruction ...
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.