Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Templates Overview
- xsl:call-template
- xsl:param
- xsl:template
- xsl:variable
- xsl:with-param
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.
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Templates Overview
- xsl:call-template
- xsl:param
- xsl:template
- xsl:variable
- xsl:with-param
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Templates Overview
- xsl:call-template
- xsl:param
- xsl:template
- xsl:variable
- xsl:with-param