format for XSL:IF is:
Template body
For example:
This code means to detect all elements under the People node and, if a
3.5 Xsl:choose, Xsl:when and Xsl:otherwise
The XSL:IF syntax does not have an else attribute. If we are going to make multiple choices, we need to use the Xsl:choose/xsl:when/xsl:otherwise series Process Control syntax. For specific use, see the following XSL file example:
No name available
Description: First in the People
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.
Grammar
3.5 Xsl:choose, Xsl:when and Xsl:otherwise
The XSL:IF syntax does not have an else attribute. If we are going to make multiple choices, we need to use the Xsl:choose/xsl:when/xsl:otherwise series Process Control syntax. For specific use, see the following XSL file example:
No name available
Description: First in the People node to find Name available ".
3.6 Xsl:sort
In
imported style sheet to implement template rules
6.0
Apply-templates
Apply the template rule to the current element or the current child node element.
5.0
6.0
Attribute
Add an attribute
5.0
6.0
people, you can write the XSLT Code as follows: 3.4 XSL: If XSL: If is similar to the IF Condition Statement in common programming languages. If a node can be set to meet a certain condition, it is processed by a template. The syntax format of XSL: If is: Template body For example: This code detects all elements under the People node. If a 3.5 XSL: Choose, XSL: When and XSL: otherwise XSL: The if syntax does no
:
3.4 XSL: If
XSL: If is similar to the IF Condition Statement in common programming languages. If a node can be set to meet a certain condition, it is processed by a template. The syntax format of XSL: If is:
Template body
For example:
This code detects all elements under the People node. If a
3.5 XSL: Choose, XSL: When and XSL: otherwise
XSL: The if syntax does not have the attributes of else. If you want to make multipl
Web: http://www.w3school.com.cn/xsl/xsl_w3celementref.asp XSLT Element
For more details about the following elements, click the link in the element column.
N: indicates the earliest Netscape version that supports this label.
IE: indicates the earliest version of Internet Explorer that supports this label.
Note:Elements supported in IE 5 may have
Element Syntax of XSLTXSL: Template and XSL: Apply-templatesXSL: value-XSL: For-eachXSL: IfXxsl: Choose, when, otherwiseXSL: Sort
XSL: Template and XSL: Apply-templates Template is one of the most important concepts in XSLT. An XSLT file is composed of one template. Any XSLT file contains at least one template. The
;
Xsl: template defines a new template. Name, priority, and mode in the attribute are used to match different templates of the same node. They are not common attributes. The match attribute controls the pattern of the template. the pattern is used to locate which node in the XML source document is processed by the template. A template matches a node. Let's use an example to help you unders
ArticleDirectory
Attribute
Example 1
Example 2
Example 3
Definition and usage
If we add select to the Attribute, it only processes child elements that match the value of this attribute. We can use the select attribute to define the sequence of proce
The CSS height attribute sets the height of the element, and the cssheight attribute element.
The height attribute sets the height of an element. Note: The height attribute does not inc
For example, there is a class:
Public class User{Public string Name {get; set ;}}
On the strong type view page, the input element corresponding to the attribute Name is displayed, and you want to add a title attribute and the corresponding value,
□Ideas
→ Custom TooltipAttribute, which can be attached to the
First paste a common floating code parent element Div set the background color to gray # f1f1f1, child element Div respectively set different colors
I am No.1I am no. 2I am No. 3I am No. 4
This code will generate the following results:
We found that the parent element has no height at all (the review element shows tha
","backgroundColor":"#ccc"});
If the value is a number, it is automatically converted to a pixel value. In the CSS () method, if the attribute contains the "-" symbol, such as the font-size and background-color attributes, if the value of these attributes is set without quotation marks, the code above should be written in the camper format. If the code above is enclosed in quotation marks, it can be written as "font-size" or "fontsize ". In shor
attribute, you can add more than one space separating the following pairs of CSS class action functions can also fill in multiple CSS classes $ ("#txt1"). AddClass ("Txt1_class txt1_ Class2 ");//Determine if the CSS class already exists, return TRUE or False $ (" #txt1 "). Hasclass (" Txt1_class txt1_class2 ");//Remove the specified CSS class, separated by a space, and delete the
attribute, you can add more than one space separating the following pairs of CSS class action functions can also fill in multiple CSS classes $ ("#txt1"). AddClass ("Txt1_class txt1_ Class2 ");//Determine if the CSS class already exists, return TRUE or False $ (" #txt1 "). Hasclass (" Txt1_class txt1_class2 ");//Remove the specified CSS class, separated by a space, and delete the
The field element child level of the fieldtype element will be configured in the fldtypes *. xml file in % ProgramFiles % \ common files \ microsoft shared \ Web Server Extensions \ 14 \ template \ XML.
Each fieldtype element has several required and optional field elements, which are distinguished by the name attribute
==================================Add a property value to a CSS class that is a class element attribute, you can add more than one space separated by the following CSS class action function can also fill in multiple CSS classes$ ("#txt1"). AddClass ("Txt1_class txt1_class2");Determines if the CSS class is already in e
In the HTML DOM (Document Object model), each part is a node.
A node is the most basic constituent element of a DOM structure, and each HTML tag is a node of the DOM structure.
A document is a document node.
All HTML elements are element nodes
All HTML attributes are attribute nodes
Text inserted into HTML element
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.