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.