Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XSLT Developer's Guide

Comparing XSLT to Cascading Style Sheets

Although XPath, CSS, and XSLT can work together to transform an XML data set, they each have a different role. The following is a brief review of these technologies and their roles.

This means that the real purpose of XSLT is not to format data, but to transform and manipulate data. The formatting aspect is best left for CSS, especially for large and complex documents.

If the content of an XML document can be displayed in the order as specified in the source document, you can use CSS without any help from XSLT. To display the output in any other order, you must use XSLT, possibly with the help of CSS.

The following sections summarize the advantages and disadvantages of XSLT and CSS.

Advantages of XSLT

Disadvantages of XSLT

Advantages of CSS

Disadvantages of CSS

Other Resources Other Resources

Cascading Style Sheets