O'Reilly logo

Cascading Style Sheets (CSS) by Example by Steve Callihan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using CSS with XML

CSS can be used with XML documents, as well as in conjunction with HTML and XHTML documents . XML documents have no formatting at all and require either an XSL (Extensible Stylesheet Language) or a CSS style sheet if they are to be displayed at all.

Although XSL provides functionality beyond CSS (such as element reordering, for instance), CSS is simpler and easier to implement. According to the original XSL proposal, “CSS will be used to display simply-structured XML documents and XSL will be used where more powerful formatting capabilities are required or for formatting highly structured information such as XML structured data or XML documents that contain structured data.” (See http://www.w3.org/Submission/1997/13/Overview.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required