XML and Cascading Style Sheets (CSS)
Lightweight Presentation
-
Applying an HTML technology to XML
While CSS was designed to provide formatting for HTML, its designers recognized that it would also work with XML. In fact, it works better with XML because there are no underlying expectations of how to format any given XML element.
-
Internet Explorer provides limited support
While Mozilla uses XML and CSS as foundation technologies, and Opera has provided substantial support, Microsoft Internet Explorer's support for displaying XML with CSS has improved from horrible (entities appeared as text, printing was a disaster) to mediocre. IE doesn't seem to understand namespaces, uses an explicitly non-standard approach to including 'data islands' in documents, and can't cope with CSS formatting beyond block, inline, and simple lists.
-
CSS expects a certain kind of document
Because CSS expects to display the contents of elements, not attributes, some attribute-heavy XML documents don't display well with CSS.
-
Sending 'raw' XML has its advantages
Recipients can take raw XML documents and reuse the information they contain. Importing HTML tables into spreadsheets or databases is not much fun. XML can make this reuse much simpler.
Previous Page <
TOC
> Next Page