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 ...
Get Cascading Style Sheets (CSS) by Example 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.