Name
xsl:apply-templates
Synopsis
<xsl:apply-templates select="node-set-expression
" mode="QualifiedName
"> <! -- (xsl:sort | xsl:with-param)* -- > </xsl:apply-templates>
The xsl:apply-templates
instruction tells the processor to search for and
apply the highest-priority template rule in the stylesheet that
matches each node identified by the select
attribute.
Attributes
select
, optionalThis is an XPath expression that returns a node-set. Each node in this set will be processed further. If the
select
attribute is omitted, then all child nodes of the context node should be processed.mode
, optionalIf the
mode
attribute is present, then only templates that have a matchingmode
attribute will be applied. If themode
attribute is absent, then only templates without amode
attribute will be applied.
Contents
The xsl:apply-templates
element may have xsl:sort
child
elements to specify the order in which the selected nodes will be
processed. Without any xsl:sort
children, the default is to process nodes in document
order.
The xsl:apply-templates
element may have xsl:with-param
child elements to pass parameter values to the matched
templates.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.