Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

xsl:param

Syntax

Description

Declare a parameter for a template or for the style sheet as a whole. A template parameter must be declared within the template element. A global parameter, the scope of which is the entire style sheet, must be declared at the top level of the style sheet.

Attributes

name

Defines the name of the parameter.

select

(Optional) XPath expression defining 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. The select attribute or the content of the <xsl:param> element can define the default value. Do not specify both a select attribute and content; we recommend using the select attribute so as not to create a result tree fragment.