Summary

CSS is a style sheet technology that's designed for use with HTML, but that also happens to be well suited for XML. CSS style sheets define style rules, which are applied to elements in an XML document to determine how the elements are rendered in a Web browser. When all you need to do is simply format XML content using presentation styles, CSS is the perfect solution. However, many XML applications will require XML content to be filtered, ordered, rearranged, or otherwise manipulated before they can apply styles. In this case, CSS requires the help of another technology, such as XSL or a scripting language with access to the DOM.

Get XML Unleashed 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.