Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    xsl:apply-templates

    Syntax

    <xsl:apply-templates select="node-set-expression">
        <xsl:with-param name="qualified-name" select="expression">
            ...
        </xsl:with-param>
    </xsl:apply-templates>

    Description

    Apply one or more templates, according to the value of the select attribute. If the select attribute is not included, the script recursively processes all child nodes of the current node. If the select attribute is present, the processor only applies templates to the child elements that match the expression of the select attribute, which must evaluate to a node-set. The <xsl:template> instruction dictates which elements are transformed according to which template. The templates that are applied are passed the parameters specified by the <xsl:with-param> elements within the <xsl:apply-templates> instruction.

    Attributes

    select
    —

    (Optional) Selects the nodes to which the processor applies templates. By default, the processor applies templates to the child nodes of the current node.

    Usage Examples

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

    Published: 2013-03-05