transformToFragment
transformToFragment($source as Node?, $ownerDocument as Document?) → DocumentFragment
Returns the result of an XSLT transform as a DocumentFragment object.
Arguments |
|||
|
$source |
Node? |
The source document or node to be transformed. |
|
$ownerDocument |
Document? |
The owner document for the fragment |
Result |
DocumentFragment |
Details
If no source document is supplied then an initialTemplate must be set. A DocumentFragment is useful because it can be it allows a set of nodes to be appended to the DOM without a container element.
All DocumentFragments must have an owner document, if none is supplied as a parameter a new XML document is created for this purpose.