Supported Platforms
Related Documentation
- ACX, EX, M, MX, SRX, T Series
- SLAX Parameters Overview
- ACX, EX, M, MX, PTX, SRX, T Series
- SLAX Templates Overview
- template
- var
- with
param
Syntax
param $name=value;
Release Information
Statement introduced in version 1.0 of the SLAX language.
Description
Declare a parameter for a template or for the style sheet as a whole. Template parameters declared with the param statement must be placed inside the template code block. A global parameter, the scope of which is the entire style sheet, must be declared at the top level of the style sheet. You can include an initial value by following the parameter name with an equal sign (=) and a value expression. A parameter whose value is set by Junos OS at script initialization must be defined as a global parameter.
In SLAX, parameter and variable names are declared and accessed using the dollar sign ($). This is unlike the name attribute of <xsl:variable> and <xsl:parameter> elements, which do not include the dollar sign in the declaration.
Attributes
name | — | Defines the name of the parameter. |
value | — | Defines the default value for the parameter, which is used if the person or client application that executes the script does not explicitly provide a value. |
SLAX Example
param $vrf;
param $dot = .;
XSLT Equivalent
<xsl:param name="vrf"/>
<xsl:param name="dot" select="."/>
Usage Examples
- Example: Imposing a Minimum MTU Setting
- Example: Limiting the Number of ATM Virtual Circuits
- Example: Limiting the Number of E1 Interfaces
- Example: Preventing Import of the Full Routing Table
- Example: Requiring and Restricting Configuration Statements
Related Documentation
- ACX, EX, M, MX, SRX, T Series
- SLAX Parameters Overview
- ACX, EX, M, MX, PTX, SRX, T Series
- SLAX Templates Overview
- template
- var
- with
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, SRX, T Series
- SLAX Parameters Overview
- ACX, EX, M, MX, PTX, SRX, T Series
- SLAX Templates Overview
- template
- var
- with