Using XSL to design XML

Source: Internet
Author: User
Tags processing instruction xsl
xml| Design


XSL expands the style language (extensible styling Language), an xml-based language used to transform XML data. This conversion can take place between one format of XML and another, either from XML to H M L format or from XML to any type of text output.
One of the reasons that XSL is produced is that XML is used purely for data. We have said that XML tags are used only to identify data, unlike the H T M tag, which can be used to specify data formats. Therefore, you need to format the XML in some way to display the XML data.
XSL is made up of two parts, the translation language and the format language, and the core of this discussion is the transformation part. Why do you say that? This is only because XSL is not yet a normative standard, which means that most browsers support it is incomplete. Several major browsers basically do not support the XSL formatting part, and many browsers do not even support its transformation section.
Microsoft released IE 5 o'clock, adding support for the XSL Transformation component in accordance with the criteria established at that time. But since then, as standards have been evolving, Microsoft has decided not to update its support for XSL unless the standard is approved. This means that IE 5 does not support the formatted part of the XSL, but partially supports its conversion language.
If you need to use the latest version of XSL, you can use an XSL parser that conforms to the latest standards. The website (www.w3c.org) of W 3 C details the status of the XSL Standard, W W. o A S i s-o p e N. o r g/c o v e r/xsl. The H T m site is also tracking the direction of this standard, and there are also some software and articles about XSL.
XSL style sheet
XSL is designed based on a set of rules that match elements or attributes in XML. These rules are called templates, where you can iterate through elements and attributes and apply other templates to perform other types of processing. Text that is not part of an XSL processing instruction is output, which is the process of converting XML by matching the elements with the values of the output text and elements.
Consider the XML file on a u t h o r, which was generated earlier in this chapter by a D O, which describes how to convert this XML file into an H T M L table. But we're not going to discuss XSL in detail because it's too big, and that's because it's beyond the scope of the book. We just want to show you what you can do with XSL. One of the functions of XSL is the ability to convert XML into H T M L.







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.