Cascading Style Sheets (CSS) is a system for applying presentation style to markup. CSS is best known for its use in styling HTML Web pages, but it is also well suited to presenting XML documents on the Web and on other media. Effective use of CSS is the key to separating the content from its presentation.
Most developers already know Cascading
Style Sheets (CSS) [W3C Recommendation] as the recommended means of
expressing the style in which an HTML document should be presented. You
can also use it to present XML documents on the Web and on other media,
and it's even better suited for this purpose since the release of CSS
Level 2. Mapping XML documents to output structure is performed using
display property. The standard way to
link an XML document to its CSS stylesheet document is defined in Associating Style Sheets with XML documents Version 1.0 [W3C Recommendation]. Much like Document Object
Model (DOM), CSS is organized into levels, each of which builds added
capabilities upon the prior one.
- Learn the basics of CSS and CSS with XML, starting with Use Cascading Stylesheets to display XML, Part 1: Basic techniques to present XML in Web browsers by Uche Ogbuji (November 2004). This tutorial introduces the use of CSS to style XML in browsers. Uche Ogbuji's Use Cascading Stylesheets to display XML, Part 2: Advanced techniques to present XML in Web browsers (developerWorks, February 2005) covers advanced topics about using CSS to style XML in browsers. If you're familiar with Extensible Stylesheet Language Transformations (XSLT), continue into Uche Ogbuji's Use Cascading Stylesheets to display XML, Part 3: Combine XSLT and CSS to process XML (developerWorks, June 2005), which discusses XSLT techniques for working with CSS for HTML or XML output.
- Dr. David Mertz's article, Tip: Using CSS2 to display XML documents, offers a brief introduction with a detailed example (developerWorks, December 2001).
- Check out the references for CSS Level 1 and CSS Level 2 on ZVON.
- Discover the wealth of information on all aspects of CSS on the CSS Wiki.
- Read about other XML standards: Index of XML standards.
- Participate in any of several XML-centered forums: XML zone discussion forums.
- Get involved in the developerWorks community: developerWorks blogs
- Find out how you can become an IBM-Certified Developer in XML and related technologies at IBM XML certification.
- See the developerWorks XML Zone for a wide range of technical articles and tips, tutorials, standards, and IBM Redbooks at XML technical library.
- Stay current with technology in these sessions: developerWorks technical events and webcasts.
- Build your next development project with trial software available for download directly from developerWorks: IBM trial software