Using XSL to display XML data

Source: Internet
Author: User
Tags xsl

Use XSL to add display information to an XML document.

--------------------------------------------------------------------------------

Using XSL to display XML documents
XSL is an extensible Style single language of XML.

XSL (full name: Extensible Style Single language, the extensible Stylesheet Language) is much more powerful than CSS style sheet functionality. One of the main uses of XSL is to convert an XML document into an HTML-formatted file and then to the browser to display the result of the conversion:

If you have Netscape 6 or IE 5 (or higher), you can view the XML file and the XSL style sheet.

Display in IE6: View the results in IE 6

Display in IE5: View the results in IE 5

Note the second line in the following code fragment:

<?xml version= "1.0" encoding= "Iso-8859-1"?>
<?xml-stylesheet type= "text/xsl" href= "simple.xsl"?>
<breakfast_menu>
<food>
<name>belgian waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian waffles
</description>
<calories>650</calories>
</food>
</breakfast_menu>

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.