Using CSS to display XML

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.