Skip to main content


developerWorks  >  XML | Web development  >

Display XML with Cascading Stylesheets: Use Cascading Stylesheets to display XML, Part 2: Advanced techniques to present XML in Web browsers

developerWorks

Level: Introductory

Uche Ogbuji (uche.ogbuji@fourthought.com), Principal consultant, Fourthought Inc.

25 Feb 2005

Register now or sign in using your IBM ID and password.

In a previous tutorial, Uche Ogbuji showed how to use Cascading Stylesheets (CSS) to display XML in browsers, presenting basic techniques. However, as anyone who has tried to master CSS even in the world of HTML and JavaScript can attest, there are numerous tricks, traps and nuances. The same is true when using CSS with XML. This tutorial builds on the basics in the earlier one to cover such intermediate and advanced topics.

Prerequisites

This tutorial assumes knowledge of XML, and some basic knowledge of CSS. You should also be familiar with the use of CSS to style XML in browsers. Familiarity with XML Namespaces and XSLT is recommended, but not required.

Other tutorials in this series are:


System requirements

You will need JavaScript enabled in your browser.

This tutorial uses a lot of stylesheet examples to demonstrate the usefulness of CSS for XML display. You can experiment with the examples in your favorite XML-aware browser.

To try out the examples, you need a Web browser that supports XML and CSS Level 2 or better. The author presents the output of all examples using Firefox 1.0 on Fedora Core Linux. Go to http://www.getfirefox.com/ to get that CSS-compliant Web browser. Based on Mozilla's rendering engine, Firefox is available on Windows, Mac OS X, Linux, and other platforms.



Duration

Under two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


More in this series:
Display XML with Cascading Stylesheets