Use of XSLT in asp.net 2.0

Source: Internet
Author: User
Tags xsl xslt

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










Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.