Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT Element Reference Manual

XSLT Element Reference Manual


XSLT elements from the W3C Recommendation (XSLT Version 1.0).


XSLT Elements

If you need more detailed information about the following elements, please click the links in the Element column.

Element Description
apply-imports Apply template rules from an imported stylesheet.
apply-templates Apply a template rule to the current element or to the child nodes of the current element.
attribute Add an attribute.
attribute-set Define a named attribute set.
call-template Call a specified template.
choose The difference between and to express multiple conditional tests.
comment Create a comment node in the result tree.
copy Create a copy of the current node (without child nodes and attributes).
copy-of Create a copy of the current node (with child nodes and attributes).
decimal-format Define the characters and symbols to use when converting numbers to strings with the format-number() function.
element Create an element node in the output document.
fallback Specify alternative code to run if the processor does not support a certain XSLT element.
for-each Loop through each node in a specified node-set.
if Contain a template that is applied only when a specified condition is true.
import Used to import the content of one stylesheet into another. **Note:** The imported stylesheet has lower priority than the importing stylesheet.
include Include the content of one stylesheet in another.Note: The included style sheet has the same priority as the including style sheet.
key Declare a named key to be used in the stylesheet through the key() function.
message Write a message to the output (used to report errors).
namespace-alias Replace namespaces in the stylesheet with different namespaces in the output.
number Determine the integer position of the current node and format the number.
otherwise Specifies the The default action of the element.
output Define the format of the output document.
param Declare a local or global parameter.
preserve-space Define elements that preserve whitespace.
processing-instruction Write a processing instruction to the output, generating a processing instruction node.
sort Sort the output.
strip-space Define the elements whose white space should be stripped.
stylesheet Define the root element of the stylesheet.
template The rule applied when the specified node is matched.
text Write text to the output, that is, generate a text node through the stylesheet.
transform Define the root element of the stylesheet.
value-of Extract the value of the selected node.
variable Declare a local or global variable.
when Specifies the The action of the element.
with-param Specify the value of the parameter passed to the template.