XSLTProcessor: getParameter() method

The getParameter() method of the XSLTProcessor interface returns the value of a parameter (<xsl:param>) from the stylesheet imported in the processor.

Syntax

js
getParameter(namespaceURI, localName)

Parameters

namespaceURI

The namespace associated with the parameter name. A "null" value is treated the same as the empty string ("").

localName

The name of the parameter in the associated namespace.

Return value

An object that is the value associated with the parameter. It can be of any type.

Note: Firefox supports any kind of parameter. Chrome, Edge and Safari only support string parameters.

Examples

Specifications

Specification
DOM Standard
# dom-xsltprocessor-getparameter

Browser compatibility

BCD tables only load in the browser

See also