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

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
importStylesheet