XSL concise tutorial (1) XSL entry

Source: Internet
Author: User
I. XSL entry 1. XSL---XML's style sheet HTML web pages apply pre-identified identifiers (tags), which means all the markup has a clear meaning, for example p is another line h1 is the title font. All browsers know how to parse and display HTML webpages. However

1. XSL entry

1. style sheet of XSL---XML

The pre-determined identifier (tags) of the HTML web application, which means that all the tags have a clear meaning, for example

Is the title font. All browsers know how to parse and display HTML webpages.
However, XML does not have fixed identifiers. we can create the identifiers we need, so browsers cannot parse them actively, for example


2. XSL --- not just a style sheet

XSL consists of two parts:

One is to convert XML documents; the other is to convert structured XML documents.

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 structure 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 scale announced by W3C. IE5.0 was announced before the final determination of the XSL scale. Microsoft has promised to fix it in ie5.5.


It can be understood as a table or a table. Due to the scalability of XML, we do not have any scaling measures to display XML documents.In order to control the display of XML documents, we need 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.

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.