XSL short tutorial (1) XSL getting started

Source: Internet
Author: User
1. Get started with XSL

1. style sheet of XSL---XML

The HTML webpage uses a pre-defined identifier (TAGS), which means that all the tags have a clear meaning. For example, <p> is a new line However, XML does not have fixed identifiers. We can create the identifiers we need, so browsers cannot Parse them automatically. For example, <Table> can be understood as a table or a table. Due to the scalability of XML, there is no standard way to display XML documents.
To control the display of XML documents, it is necessary to establish a mechanism. CSS is one of them, but XSL (Extensible Stylesheet Language) is the preferred style language for displaying XML documents, it is more suitable for XML than CSS.

2. XSL --- not just a style sheet

XSL consists of two parts:

First, convert the XML document; second, format the XML document.

If you do not understand this, you can think like this: XSL is a language that can convert XML into HTML, a language that can filter and select XML data, a language that can format XML data. (For example, a negative number is displayed in red .)

3. XSL --- what can it do?

XSL can be used to define how XML documents are displayed. XML documents can be converted into HTML files recognized by browsers. Typically, XSL translates every XML element into an HTML element, to achieve this conversion.

XSL can add new elements to the output file, or move the elements. XSL can also rearrange or index data. It can detect and determine which elements are displayed and how much data is displayed.

4. display of XSL in ie5

Note: ie5.0 is not fully compatible with the latest XSL standard released by W3C. Because ie5.0 was released before the XSL standard was finalized. Microsoft has promised to fix it in ie5.5.

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.