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

    xsl:param

    Syntax

    <xsl:param name="qualified-name" select="expression">
    ...
    </xsl:param>

    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.

    Usage Examples

    Published: 2013-03-05