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, click the link in the Element column.

Element Description
apply-imports Applies template rules from an imported style sheet.
apply-templates Applies template rules to the current element or to the child nodes of the current element.
attribute Adds an attribute.
attribute-set Defines a named attribute set.
call-template Calls a specified template.
choose Used together with <when> and <otherwise> to express multiple conditional tests.
comment Creates a comment node in the result tree.
copy Creates a copy of the current node (without child nodes and attributes).
copy-of Creates a copy of the current node (with child nodes and attributes).
decimal-format Defines the characters and symbols to be used when converting numbers to strings using the format-number() function.
element Creates an element node in the output document.
fallback Specifies an alternative block of code to run if the processor does not support an XSLT element.
for-each Iterates over each node in the specified node set.
if Contains a template that is applied only when a specified condition is true.
import Used to import the contents of one style sheet into another.Note:The imported style sheet has lower precedence than the importing style sheet.
include Includes the contents of one style sheet into another.Note:The included style sheet has the same precedence as the including style sheet.
key Declares a named key that is used in the style sheet through the key() function.
message Writes a message to the output (used for reporting errors).
namespace-alias Replaces a namespace in the style sheet with a different namespace in the output.
number Determines the integer position of the current node and formats a number.
otherwise Specifies the default action of the <choose> element.
output Defines the format of the output document.
param Declares a local or global parameter.
preserve-space Defines the elements for which whitespace is preserved.
processing-instruction Writes a processing instruction to the output, i.e., generates a processing instruction node.
sort Sorts the output.
strip-space Defines the elements for which whitespace characters should be removed.
stylesheet Defines the root element of a style sheet.
template Rules to apply when a specified node is matched.
text Writes text to the output, i.e., generates a text node via the style sheet.
transform Defines the root element of a style sheet.
value-of Extracts the value of a selected node.
variable Declares a local or global variable.
when Specifies an action of the <choose> element.
with-param Specifies the value of a parameter passed to a template.


Other Extensions