XSL is Extensible Stylesheet Language (EXtensible Stylesheet Language), is a readable format used to present XML data language.
directory
XSL XSL Introduction to XSL syntax is the same with XML XSL XSL application uses XSL Introduction to XSL is to XML, as CSS is to HTML. It is the Extensible Stylesheet Language (EXtensible Stylesheet Language). This is a readable format used to present XML data in the language. xsl is a markup language, that how to install the contents of the xml document into another form of documentation. By writing xml xml xsl to make the XSL display into a different format actually consists of two parts: * XSLT language for transforming XML documents * XPath for navigating in XML documents is the XSL transformation language XSLT (XSL Transformation), which is the most important part of XSL. XSLT can be XML documents into other XML documents, XHTML output, or simple text. This is usually done by each XML element into HTML elements to complete. Since XML tags are user-defined, the browser does not know how to interpret or render each label, so you must use the XSL. Is the meaning of XML tags for the convenience of the user (not computer) understand. XSLT XML tree can also do the following: * Add and remove elements to add and remove attributes * * rearrange the elements or sort * Hide or show some of the elements * Find or select a specific element in XSL XML syntax you may remember the article overview mentioned before, all XML documents are based on XML declaration at the beginning. XSL style sheet as well. The first line of any XSL documents are actually XML declaration: or However, in most practical cases, XSL declaration looks a bit more complicated: Please note that this does does not conflict with the XML syntax rules: XSL style sheet is completely valid XML document, because it has a root element, specified by the label. Use XSL XSL has several goals in the design uses, some developers of these applications makes it the perfect solution for cases, while others develop the situation is useless. XSL designed for use with XML documents, and follow the XML syntax. Therefore, it can only support the application of XML used in conjunction with XML. The most appropriate use of XML and XSL is the case: Web portals, news aggregators, community site or any other variety of equipment and a large need to provide information the client Web applications. XSLT is a language based on pattern matching. It will match the specific criteria to find the node, then apply the appropriate rules. Therefore, it does not have the computing power of most programming languages. For example, XSL can not change the value of a variable at run time. It should not be used in the formula from the use of complex dynamic data source (such as online stores) to calculate the value. Web programming language is more suitable for this purpose. XSL can not replace or supplement the CSS. It should not (can not) used to set the HTML style. However, you can use to require frequent re-designed visual effects, frequent replacement of a flexible format, layout, and data processing sites. XSL is not a content management tool. It should not (can not) be used to change the contents of XML documents, or edit information. However, you can use XML and XSL documents need to deal with several different formats of content management systems. It began in XSL, the end of the XSLT, XPath and XSL-FO. That began in the XSL XSL eXtensible Stylesheet Language (EXtensible Stylesheet Language). World Wide Web Consortium (W3C) started to develop XSL because: there is the style sheet for XML-based language needs. CSS = HTML style sheet using predefined HTML tags, labels, meaning it is easy to understand. The definition of HTML form element element - and clear the browser how to display it. Add style to the HTML element is very easy. By CSS, is easy to inform the browser to display a specific font or color of an element. XSL = XML Style Sheet XML does not use predefined tags (we can use any label name like), and the meaning of these labels are not all that easy to understand. Means that a HTML form element, a piece of furniture, or whatever - is not clear how the browser displays it. XSL to describe how to display the XML document! XSL - XSL style sheet language is not only consists of three parts: XSLT for transforming XML documents of a language. An XML document XPath is used to navigate the language. XSL-FO for formatting XML documents of a language. XSL application of database technology, specifically as a fast implementation of Extensible Style Sheet Language Transformations (XSLT) method. This method first converted by constructing tree structure of the XML document structure information and XSLT transformation requirements, and then to build the tree from the converted stream processing model; scan XML source document, a stream processing model, an XSLT conversion program to convert a lot of events processors, corresponding to the scanning process for each class of events is triggered, the event has a corresponding output segment is added to the back of the result of the document; scan after that to get the final results of the complete document. The method completely avoids the need to pre-existing conversion engine throughout the shortcomings of the source document into memory, reducing memory consumption, which greatly improves the efficiency of the implementation. Even for very large XML data, but also to complete one pass through the conversion process. 1, a quick way to perform XSLT transformation, characterized by a stream processing model is to perform the XSLT transformation, the specific steps are as follows: (1) First, by converting the tree structure, the structure of the XML source document conversion requirements of information and combine XSLT , the steps are: construct XML document type definition DTD tree T; study the conversion process XSLT transformation rules each L, r, r in T to find the matching node n; continue to examine the output of the template sequence r every element o If o is a constant string for the tree T to create a leaf node n ', add the line from n to n' side; if o is to call the template command, from the tree T o find the selected node n ', the same Adding a path from n to n 'side; (2) convert a tree of stream processing model, which is a recursive process, the steps are: the conversion of any tree node n, end (n), start (n) early start value is an empty string; if n is a leaf node, then that end (n): = pcdata + end (n); to c1, c2 ,..., cp node n that all of the following children from the DTD tree node to d1, d2 ,..., dq node n that all of the following XSLT transformation process from a child node, if d1 is a constant string node, so that start (n): = start (n) + d1, and set counter i to 2, otherwise, set the counter i to 1; when i is not greater than q, repeat the following steps: Suppose c is located from node to node n di n on the path of this child node, from n to the c edge is not marked with an asterisk, and di +1 is a constant string node, so that end (c): = end (c) + di +1 and i: = i +2, or so i: = i +1; If di +1 is a constant string node, assuming that c 'is located from node n to node di +2 n on the path of this child node, so that start (c'): = di +1 + start ( c ') and i: = i +2, or so i: = i +1; for each child node dj, the recursive call the above process; (3) Scan the source document XLM, through flow processing model, an XSLT converter processors into a lot of events; to read from start to finish to take the source XML document will trigger a lot of the process of events,
paul smith wallets, for each type of event, there is a corresponding output segment; the very beginning, the result document is empty, with the the source of the document scanning process, the output of the corresponding event fragments were gradually added to the back of the result of the document; in the scanning process is finished, the user can immediately get the final results of the complete document; one, end (n) the output end of the event for the element fragments, start (n) the output of the element start event fragment, pcdata PCDATA for the current value of leaf nodes. [1] entry for more Atlas Atlas References 1
Extensible Stylesheet Language
http://www.boraid.com/baike/doc.asp?id=59479
Further reading: 1
World Wide Web technology tutorial
http://www.w3course.net
2
xsl books on
Open Category: procedures, XML, web, XSL, style list I have to perfect the