The Role of XSL Templates and Patterns in Web Development

Several years ago, when the Web was young and users' expectations were low, you could create a page with static content and it was accepted. Now, to attract and retain online customers, the content must be dynamic, both in appearance and creation. With xsl style sheets, you can write the code that will read the data from an XML file using only a few lines. This data can then be used to dynamically create the content of an HTML file that can be sent to the user.

To further appreciate how easy xsl style sheets are to use, go back to Listing 2.2 and examine the JavaScript code that reads the data from the XML file. What xsl can accomplish in only a few lines requires many more lines of JavaScript ...

Get Sams Teach Yourself XML in 24 Hours 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.