Open Directory Site XML Tutorials

ASP | XML | VBScript | JavaScript | ADO | CSS | XMLDOM | PHP | Operating Systems

Home >> XML >>Displaying XML with CSS

Displaying XML with CSS

 

With CSS you can add display information to an XML document.

Displaying your future XML files with CSS?

Will you be using CSS to format your future XML files?

No, we don't think so! But we could not resist giving it a try:

Here is a fraction of the XML file, with an added CSS stylesheet reference:

<?xml version="1.0"?>

<?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>

We DO NOT believe that formatting XML with CSS is the future of the Web. Even if it looks right to use CSS this way, we DO believe that formatting with XSL will be the new standard (as soon as the main browsers support it).

Creating your future Homepages with XML?

Will you be writing your future Homepages in XML?

No, we don't think you will! But we could not resist giving it a try

We DO NOT believe that XML will be used to create future Homepages.

We DO believe however, that XHTML - HTML defined as XML will do the trick.

Cheap Web Hosting Articles - Web Site Design & Web Hosting Tutorials - Domain Hosting