The following XSLT style TABLE statement is incorrect.
XSL: Variable
Name
= "Formatinfo"
Select
= "'Datetime '"
/>
XSL: Call-template
Name
= "$ Formatinfo"
/>
This is because the XSLT call-template Template Name cannot be a variable,
XML documents can only represent the content of data, while the actual data is to be presented on the webpage. You can use CSS to format the XML document and display it. this content has been described in detail in the previous article. In addition to CSS, there is also a language that can show XML data content on the webpage, that is, XSL. The XSL language includes XSLT (XSLTransformation) and FO (FormatObject ).
How to Understand template calls in XSLTBecause the style sheet is descriptive rather than procedural, we will not assume that the first template is the start of the call, nor take "/" as a sitting
Start node.The style sheet discovers the call relationship between templates and automatically finds the call start point.For example:Source. xml/*------------*/
Books. XSL/*-----------*/Xmlns: XSL = 'H
With the introduction of the previous two chapters, we have some understanding of the basic concepts of XSLT and its transformation process. Let's learn the specific syntax of XSLT together. When it comes to grammar, it's always boring, and you can go through it in general, and then look at it when you really need to use XSLT.element syntax for 3.XSLT3.1 Xsl:template and Xsl:apply-templates3.2 xsl:value-of3
2. Examples of XSLT2.1 How XSLT Transforms XML2.2 An instance2.3 Process ParsingThe purpose of 2.4 XSLT2.1 How XSLT Transforms XMLLet's make an interesting analogy: you play with the dough, you press it in different molds, you can make the shape you need. If we assume that the XML data document is a big piece of dough, XSLT is like a mold, pressing it, making the
Chapter 2: XSLT instances
ArticleAuthor: A Jie
. 1 how to convert XML into XSLT2.2 one instance2.3 Process Analysis2.4 usage of XSLT 2.1 How XSLT converts XML Let's make an interesting example. You have played the Plasticine and press it on different models t
Programming (XP) technology.
3, try to make XSLT style sheet simple.
There are at least two reasons to keep your XSLT stylesheet simple. First, XSLT is not a programming language as rich as java. Although XSLT is a good translator, embedding too many application logic into a stylesheet can make it quite complex. For
With the introduction of the previous two chapters, we have some understanding of the basic concepts of XSLT and its transformation process. Let's learn the specific syntax of XSLT together. When it comes to grammar, it's always boring, and you can go through it in general, and then look at it when you really need to use XSLT.
element syntax for 3.
to make an XSLT stylesheet into the input or output of a transformation so that the language can be used for itself. It also makes it easy to embed the expected XML output block into the stylesheet. In fact, many simple stylesheets can basically write the template that expects the output document, and you can embed some special instructions in the text to insert the variable data in the input or calculate
the stylesheet only uses XSLT1.0 standard functionality, which is currently the only standard.
A
The next code is:
Description: When the template rules are triggered, the contents of the template control the output results. In the example, most of the template content consists of HTML elements and text. Only the World "Copy to o
How to convert XML into XSLT
Let's make an interesting example. You have played the Plasticine and press it on different models to make the desired shape. If we assume that the XML data document is a big plasticine, XSLT is like a model. With one click, we can make the desired shape-HTML documents meeting different needs.
Take a look at the following process:
We input the original XML document, use XSL as t
. Instances of XSLT
2.1 How XSLT Transforms XML
2.2 An instance
2.3 Process Parsing
The purpose of 2.4 XSLT
2.1 How XSLT Transforms XML
Let's make an interesting analogy: you play with the dough, you press it in different molds, you can make the shape you need. If we assume that the XML data document is a big pie
1.XSLT Concept 1.1 What is XSLT 1.2 Why use XSLT 1.3 XSLT's history 1.4 What is XPath 1.5 xslt and CSS comparison 1.6 xslt and IE5 br> 1.XSLT Concept Let's first clarify a concept, you may have heard of the XSL (extensib
Concept
OutlineThis article is divided into five chapters: the XSLT concept, the XSLT instance, the XSLT element syntax, the XPath syntax, and the XSLT resource.The concept of 1.XSLT1.1 What is XSLT1.2 Why do you use XSLTThe history of 1.3 XSLT1.4 What is XPath1.5 XSLT and
this is not a pig
5) xsl: value-of displays the value of the selected node or attribute.
Select sub-node price
Select weight
6) xsl: attribute: construct the attributes of an xml node.
Used to add attributes to a node, for example:
Output
7) xsl: apply-templates application Template
If the xml file structure is complex, you can define multiple templates and then use
The label application
The concept of 1.XSLT
1.1 What is XSLT
1.2 Why do you use XSLT
The history of 1.3 XSLT
1.4 What is XPath
1.5 XSLT and CSS comparisons
1.6 XSLT and IE5
The concept of 1.XSLT
Let'
1 minute to quickly generate xslt for Web content extraction, web content xslt
1 minute to quickly generate xslt for Web content extraction. The specific content is as follows:
1. Project Background
In the article "Python real-time web crawler project description", we have said that a general web crawler can save programmers more than half the time. The focus is
NowIn, many applicationsProgramUse XMLAnd the data may be distributed in different places. In actual use, XML data of these distributions must be expressed in different views. The style sheet provides business data and representation.The Separation Method of layer, as a tool for XML data conversion, can be expressed through XML data. A style sheet can present distributed XML data in a certain view.The problem is how to generate multiple style sheets acting on distributed XML data to generate dif
Concept
1.5 XSLT and CSS comparisonsCSS can also format XML documents, so why do you need XSLT when you have CSS? Because CSS is a good way to control the output of the style, such as color, font, size, etc., but it has serious limitations, is:(1) CSS cannot reorder elements in a document;(2) CSS can not judge and control which element is displayed, which is not displayed;(3) CSS can not be statistical ca
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.