Creating CSS Style Sheets
Before you create a CSS style sheet consisting of style rules, you must decide how you want to associate the style sheet with XML documents. There are two main methods available for associating CSS style sheets with documents:
External style sheets
Document-level style sheets
Although XML supports both of these approaches to referencing style sheets, I am in favor of the first approach because it provides the cleanest separation between the content of a document and its presentation. It also facilitates the usage of a single style sheet with multiple documents, which is one of the main benefits of using style sheets in the first place. Document-level style sheets aren't all wrong—they can save you time when you're developing ...
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.