Inspirational moments arrived, listened, the royal horn has sounded, Royal Warlock --XSL - played !!
Tong to say XSL (Extensible Stylesheet Language), I can't help but pull HTML out (anyway, it is used to it ^^), in HTML, there are many simple and easy tags to display data content, such as we can Set the display format of the data content via
As a warrior, XSL will be much more powerful than we have described in the previous CSS. It consists of two ways, one way is used to convert XML text content, and the other is formatted XML text content. We can pass XSL First transform (filtering and finishing) XML data content, and define data content display mode (such as font size, color, etc.) through XSL formatting display method (such as font size, color, etc.).
Our warlock can also define a way to be used by the browser to display XML data after the conversion. At present, this method is often converting the XML element HTML element.
At the same time, XSL can also add or remove some elements to the output file (which can be understood as the power of the magic), or reintegrate these elements, and decide which elements will be displayed and how to be displayed.
Next, it is our magic display, please pay attention to watch:
E.G:
The first part, a simple XML file:
code:
XML Version = "1.0" encoding = "GB2312"?> 001 Code>
Please save this code to mybackup.xml
The second part, the first XSL file appearing:
code:
XML Version = "1.0" encoding = "gb2312"?>
code:
Gender:
status:
hobby:
Part III. Mixed display magic
code:
Xml version = "1.0" encoding = "gb2312"?> Xml: stylesheet type = "text / xsl" href = "aboutme.xsl"?> 008 Code>
001 Code>
When we open Aboutme.xml in your browser ... we can see the magical magic effect ^^
At this point, we have a preliminary understanding of XSL, and the depth of its depth is expected to look forward to the follow-up tutorial, thank you.