XSLTProcessor: setParameter() method

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

Syntax

setParameter(namespaceURI, localName, value)

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.

value

The value of the parameter.

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

Return value

None (undefined).

Examples

Specifications

Specification
DOM Standard
# dom-xsltprocessor-setparameter

Browser compatibility

BCD tables only load in the browser

See also