XSLTProcessor: importStylesheet() method

The importStylesheet() method of the XSLTProcessor interface imports an XSLT stylesheet for the processor.

Syntax

js

importStylesheet(style)

Parameters

style

The Node to import. It can be an XML document (that is a Document with doctype.name of "xml") containing an XSLT stylesheet or a literal result element transform, or an Element representing an <xsl:stylesheet> or <xsl:transform>.

Return value

None (undefined).

Examples

Specifications

Specification
DOM Standard
# dom-xsltprocessor-importstylesheet

Browser compatibility

BCD tables only load in the browser