Easy Tutorial
❮ Func Current Func Unparsedentityuri ❯

XSLT Element Reference Manual


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


XSLT Elements

For more detailed information about the following elements, click on the links in the element column.

Element Description
apply-imports Applies template rules from imported stylesheets.
apply-templates Applies template rules to the current element or its child nodes.
attribute Adds an attribute.
attribute-set Defines a named set of attributes.
call-template Invokes a specified template.
choose Works 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 children and attributes).
copy-of Creates a copy of the current node (with children and attributes).
decimal-format Defines the characters and symbols to be used when converting numbers to strings with the format-number() function.
element Creates an element node in the output document.
fallback Specifies a piece of code to run if the processor does not support a certain XSLT element.
for-each Loops through each node in a specified set of nodes.
if Includes a template that is applied only if a specified condition is true.
import Imports content from one stylesheet into another. Note: The imported stylesheet has a lower priority than the importing stylesheet.
include Includes content from one stylesheet into another. Note: The included stylesheet has the same priority as the including stylesheet.
key Declares a named key used in the stylesheet with the key() function.
message Writes a message to the output (used for reporting errors).
namespace-alias Replaces a namespace in the stylesheet with a different namespace in the output.
number Determines the integer position of the current node and formats the 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 elements where whitespace should be preserved.
processing-instruction Writes a processing instruction to the output, creating a processing instruction node.
sort Sorts the output.
strip-space Defines elements where whitespace characters should be removed.
stylesheet Defines the root element of the stylesheet.
template The rules to apply when a specified node is matched.
text Writes text to the output, generating text nodes via the stylesheet.
transform Defines the root element of the stylesheet.
value-of Extracts the value of a selected node.
variable Declares a local or global variable.
when Specifies the action of the <choose> element.
with-param Specifies the value of a parameter passed to a template.
❮ Func Current Func Unparsedentityuri ❯