In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you the example analysis of XSLT-XML/XSLT in XML, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
XSLT is part of XSL, an application of XML that specifies the rules for converting one XML document into another XML document. An XSLT document is both an XML document and a stylesheet that contains a series of templates. The XSLT processor compares the elements in the input XML document with the template in the stylesheet and, if it matches, sets the
XSLT is part of XSL, an application of XML that specifies the rules for converting one XML document into another XML document. An XSLT document is both an XML document and a stylesheet that contains a series of templates. The XSLT processor compares the elements in the input XML document with the template in the stylesheet and, if it matches, writes the contents of the template to an output tree. Complete
XSLT is part of XSL, an application of XML that specifies the rules for converting one XML document into another XML document. An XSLT document is both an XML document and a stylesheet that contains a series of templates. The XSLT processor compares the elements in the input XML document with the template in the stylesheet and, if it matches, writes the contents of the template to an output tree. When finished, serialize the output tree into an XML document or other format, such as HTML or rtf.
Several key terms of XSLT
Source tree, a tree of elements and element contents in the original document.
Result tree, the tree of the elements and element contents in the converted document.
Template rules, the basis of XSLT stylesheets, are divided into two parts: schema and template. The entire xsl:template element.
A pattern that represents a set of conditions that match the elements in the source tree with the pattern rules. The value of match in xsl:template.
A template that represents the part of the result tree to be instantiated when template rules are applied. The contents of the xsl:template element.
XSLT defines 35 elements, divided into three categories:
Two root elements
The xsl:stylesheet root element, XSLT is also an XML document, and the root element of this document is xsl:stylesheet. XSLT elements belong to the namespace xmlns:xsl= "http://www.w3.org/1999/XSL/Transform", so all XSLT elements have a xsl prefix. A minimized XSLT document:
Xsl:transform element, same function as above.
There are 13 top-level elements that can be used directly as children of the root element, including:
Xsl:apply-imports xsl:attribute-set xsl:decimal-format xsl:import xsl:include xsl:key xsl:namespace-alias xsl:output xsl:param xsl:preserve-space xsl:strip-space xsl:template template elements that are used to match elements in an XML document. For example, match the person element in the XML document. Xsl:variable
20 instruction elements
The xsl:apply-imports xsl:apply-template application template element is used to display the specified element value (content). For example, displays the value of the name element. Xsl:attribute xsl:call-template xsl:choose xsl:comment xsl:copy xsl:copy-of xsl:element xsl:fallback xsl:for-each xsl:if xsl:message xsl:number xsl:otherwise xsl:processing-instruction xsl:text xsl:value-of selects the element, which is used to calculate the value (content) of the element. For example, get the value (content) of the name element in the XML document. Xsl:variable xsl:when XSLT function above is all the content of the article "sample Analysis of XSLT-XML/XSLT in XML". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.