Name
XSLTProcessor.transformToFragment( ): transform a node or document to a DocumentFragment
Synopsis
DocumentFragment transformToFragment(NodesourceNode, DocumentownerDocument)
Arguments
-
source The document or node that is to be transformed.
-
owner The document through which the returned DocumentFragment is created. The
ownerDocumentproperty of the returned DocumentFragment refers to this document.
Returns
A DocumentFragment object that holds the result of the transformation.
Description
This method performs an XSLT transformation on the specified
node, returning the result as a DocumentFragment object. The
transformation uses the XSLT stylesheet specified by importStylesheet( ) and the parameter
values specified with setParameter. The returned fragment can be
inserted into the specified owner
document.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access