XSLT is a powerful language that can be used to transform XML into other formats such as HTML, flat-file, and even other forms of XML. However, XSLT does not contain all of the power found in languages such as C# or VB.NET. In situations where you need to perform functions that XSLT cannot handle on its own, you can resort to XSLT extension objects.
This example demonstrates how to call a simple extension object written in C# from within an XSLT stylesheet that returns the current date and time. The value returned from the extension object is then added to the XSLT output document.
|