param

Syntax

param $name=value;

Description

Declare a parameter for a template (within a template) or for the script as a whole (at the top level of the script). You can include an initial value by following the variable name with an equal sign (=) and a value expression.

In SLAX, parameter and variable names contain the dollar sign ($) even in the declaration. This is unlike the name attribute of <xsl:variable> and <xsl:parameter> elements.

$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.

param $vrf;
param $dot = .;
<xsl:parameter name="vrf"/>
<xsl:parameter name="dot" select="."/>

See Example: Requiring and Restricting Configuration Statements, Example: Imposing a Minimum MTU Setting, Example: Limiting the Number of E1 Interfaces, Example: Limiting the Number of ATM Virtual Circuits, and Example: Preventing Import of the Full Routing Table.

Related Topics