XSLTProcessor: transformToFragment() method

The transformToFragment() method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the XSLTProcessor.

Syntax

js

transformToFragment(source)

Parameters

source

The Node source to apply the XSLT stylesheet to.

Return value

Examples

Specifications

Specification
DOM Standard
# dom-xsltprocessor-transformtofragment

Browser compatibility

BCD tables only load in the browser

See also