transformToFragment

external fun transformToFragment(source: Node, output: Document): DocumentFragment(source)

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

MDN Reference