XSLT Basics

XSLT, also referred to as XSL, is a simple XML-based language for transforming XML into other formats. In its most common use, XSLT transforms XML into HTML, but XSLT can also be used for any output format, including text or XML. In contrast to HTML, XSLT is a procedural language in that you can develop templates and rules for specific XML formats and nodes. XSLT is run through an XSL processor, either a server-side framework such as the .NET Framework, a client library such as MSXML, or the native Web browser.

Although Visual Studio has an item template for XSLT files, we’ll use a simpler syntax. Before we go further, let’s look at a basic Hello World XSLT file. Example 9-1 shows an XSLT file that outputs the text "Hello, World!" while ...

Get Developing Service-Oriented AJAX Applications on the Microsoft® Platform 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.