In ASP.net 2.0, the application of XML has been greatly enhanced and new functionality has been provided in the area of XSLT processing. This article will briefly explain the use of XSLT in ASP.net 2.0, which, of course, assumes that the reader has some basic knowledge of XSLT.
In ASP.net 2.0, the XSLT aspect has the following transformations and new features:
· XslCompiledTransform-is actually a. NET 1.0 XslTransform, but provides better performance support, as well as a smooth migration of applications under. NET 1.0.
· XsltArgumentList-Allows parameters or objects to be passed to XSLT
XsltCompileException-The exception that is generated when an error occurs when an XSL document is loaded through the LOA () method.
XsltException-The exception that is generated when an error occurs while parsing the XSL document.
Let's take a look at a simple example, which takes data from the Northwind database, displays it in XML format, and converts it in XSLT format, where the XSLT code is as follows:
Simple XSLT Transformati On
Simple XSLT transformation
!--each record on a seperate row-->
< br> center