apply-templates

Syntax

apply-templates expression;

Description

Apply one or more templates, according to the value of the node-set expression. The templates that are applied are passed the parameters specified by the with statement within the apply-templates statement.

expression—Selects the nodes to which the processor applies templates. By default, the processor applies templates to the child nodes of the current node.

match configuration {
    apply-templates system/host-name;
}
<xsl:template match="configuration">
    <xsl:apply-templates select="system/host-name"/>
</xsl:template>

See Example: Adding a Final then accept Term to a Firewall and Example: Preventing Import of the Full Routing Table.

Related Topics