Chapter 26. Server-Side XML and XSLT

XML is everywhere. You’ll find it used in countless files on your computer; for everything from tracking information in your iTunes music library to providing the structure and options in Dreamweaver’s menus. On the Web, XML is used to broadcast newsfeeds, and provide product, pricing, and availability information from Amazon.com and eBay using a technology known as Web services. In fact, probably the best use of Dreamweaver’s server-side XML tool is for adding news, blog posts, or other information broadcast from other Web sites to your own.

So what exactly is XML? XML, or Extensible Markup Language, is a tag-based language, somewhat like HTML, used to organize data in a clear, easy to understand way so that different computers, operating systems, and programs can quickly and easily exchange data.

Dreamweaver’s Spry XML Data Set tools (covered in Chapter 12) let you work with XML on the “client-side.” Translation: someone visiting your site downloads a Web page, some Spry JavaScript programming, and an XML file; then, thanks to some fancy JavaScript magic, the Web page can display and interact with the XML data in a variety of ways. For example, you can publish a table of data that the visitor can sort dynamically, simply by clicking a particular column’s header (see Spry Data Sets for more about this trick).

Note

For a detailed introduction to XML, flip back to Storing Data in an XML File.

The tradeoff with the client-side approach is that it forces ...

Get Dreamweaver CS4: The Missing Manual 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.