How to use XSL to display XML data

Source: Internet
Author: User
XSL is an extensible single-language XML style. XSL (short name: Extensible style single language, theeXtensibleStylesheetLanguage) is much more powerful than CSS style sheets. One of the main functions of XSL is to convert an XML document into an HTML file, and then deliver it to the browser. the browser displays the conversion result: XSL can be used to add display information to the XML document.

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

Use XSL to display XML documents
XSL is a single language of XML scalable styles.

XSL (the eXtensible Stylesheet Language) is much more powerful than CSS style sheets. One of the main functions of XSL is to convert an XML document into an HTML file, and then deliver it to the browser. the browser displays the conversion result:

If you have Internet Explorer 6 or Internet Explorer 5 (or a later version), you can watch the XML file and the XSL style sheet.

Display result in IE6: View the result in IE 6

Display result in IE5: View the result in IE 5

Note the second line in the following code snippet:

 
 
 
  
   
    Belgian Waffles
   
   
    $5.95
   
   
    two of our famous Belgian Waffles
   
   
    650
   
  
 

The preceding section describes how to use XSL to display detailed XML data. For more information, see other related articles in the first PHP community!

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.