For XSLT elements, refer to [translation]
Address: http://www.w3schools.com/xsl/xsl_w3celementref.asp
Translator: Tony Qu
XSLT Element reference
W3C XSLT element (XSLT 1.0 ).
XSLT Element
The Element column contains attributes. You can use hyperlinks to obtain more useful information about each attribute.
- NN: The tag is supported in earlier versions of Netscape.
- IE: This label is supported in earlier versions of Internet Explorer.
Note:Elements supported by IE 5.x may have non-standard behaviors, because IE 5.x was released before XSLT became the W3C recommendation standard. However, IE 6.x fully supports XML, XSLT 1.0, and XPath 1.0.
Element |
Description |
IE |
NN |
Apply-imports |
Use an 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 |
Attribute-set |
Define the name of an attribute set |
6.0 |
6.0 |
Call-template |
Call a naming Template |
6.0 |
6.0 |
Choose |
Used with <when> and <otherwise> to indicate multi-condition tests |
5.0 |
6.0 |
Comment |
Create a note node in the result tree |
5.0 |
6.0 |
Copy |
Create a copy of the current node (the child node and attribute are not copied) |
5.0 |
6.0 |
Copy- |
Create a copy of the current node (copy sub-nodes and attributes at the same time) |
6.0 |
6.0 |
Decimal-format |
Defines the characters and symbols used to convert numbers to strings. The format-number () function is required. |
6.0 |
|
Element |
Create an element node in the output document |
5.0 |
6.0 |
Fallback |
Specifies a replacement code, and the XSLT element is allowed in the processor. |
6.0 |
|
For-each |
Traverses a specific node set and loops |
5.0 |
6.0 |
If |
Only when the if condition is true will the template to be applied be included |
5.0 |
6.0 |
Import |
Import content from one style report to another Note:An Imported style table has a lower priority than the original style table. |
6.0 |
6.0 |
Include |
Contains the content imported from one style sheet to another. Note:The included style has the same priority as the original style. |
6.0 |
6.0 |
Key |
Declare a naming keyword that can be used in the style sheet. The key () function is required. |
6.0 |
6.0 |
Message |
Output a message (only used to report errors) |
6.0 |
6.0 |
Namespace-alias |
Replace the namespace in the style sheet with another namespace in the output. |
6.0 |
|
Number |
Determine the index location of the current node, integer value, and format the number |
6.0 |
6.0 |
Otherwise |
Define the default action of the <choose> element |
5.0 |
6.0 |
Output |
Define the output document format |
6.0 |
6.0 |
Param |
Declare a local or global Parameter |
6.0 |
6.0 |
Preserve-space |
Set space for retaining elements |
6.0 |
6.0 |
Processing-instruction |
Output A process command |
5.0 |
6.0 |
Sort |
Index output data |
6.0 |
6.0 |
Strip-space |
Set node -- whether to remove white space |
6.0 |
6.0 |
Stylesheet |
Define the root element of the style sheet |
5.0 |
6.0 |
Template |
Apply rules on a matched Node |
5.0 |
6.0 |
Text |
Output common text |
5.0 |
6.0 |
Transform |
Define the root element of the style sheet |
6.0 |
6.0 |
Value- |
Obtain the value of the selected node. |
5.0 |
6.0 |
Variable |
Define a local or global variable |
6.0 |
6.0 |
When |
Defines an action of the <choose> element. |
5.0 |
6.0 |
With-param |
Define the parameter values passed to the template |
6.0 |
6 |