Visit Mozilla.org

XSLT:param

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents

The <xsl:param> element establishes a parameter by name and, optionally, a default value for that parameter. When used as a top-level element, the parameter is global . When used inside an <xsl:template> element, the parameter is local to that template. In this case it must be the first child element of the template.

[edit] Syntax

<xsl:param name=NAME select=EXPRESSION>
	TEMPLATE
</xsl:param>

[edit] Required Attributes

name
Names the parameter. This must be a QName.

[edit] Optional Attributes

select
Uses an XPath expression to provide a default value if none is specified.

[edit] Type

Instruction, can appear as a top-level element or within a template.

[edit] Defined

XSLT, section 11.

[edit] Gecko support

Supported.