Using the CSS style sheet (cascading style Sheets), you can add additional real-world information to an XML document.
--------------------------------------------------------------------------------
Do you want to use CSS to display future XML documents? Should you use CSS to display your future XML documents?
No, we don't recommend it! But we should still experiment:
This is a small fragment of code in an XML document decorated with a CSS style sheet:
<?xml version= "1.0" encoding= "Iso-8859-1"?>
<?xml-stylesheet type= "Text/css" href= "Cd_catalog.css"?>
<CATALOG>
<CD>
<title>empire burlesque</title>
<artist>bob dylan</artist>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CD>
<title>hide your heart</title>
<artist>bonnie tyler</artist>
<COUNTRY>UK</COUNTRY>
<company>cbs records</company>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</CD>
.
.
.
.
</CATALOG>
Even with CSS, we don't think that using CSS stylesheets to display XML documents is a trend for future web development. We believe that using an XSL program to format an XML document will be a trend in the future, and the most important browsers now support this technology.