20/40 - XSLT Styles to Format HTML
- christophernmiller
- Feb 20
- 1 min read
An alternative method for adding content to a page is to use XSLT styles. After exploring the ability to update an XML document using AJAX, it's clear how useful XSLT styles can be.
By formatting the document this way, all data from cars.xml is pulled, and cars.xsl formats it as rows in a table. This is accomplished using the select attribute and the XPath of the DOM object you are retrieving.
Comments