XML DOM transformToDocument() method
Definition and usage
The transformToDocument() method converts a node or document into a new document.
Syntax:
transformToDocument(source)
Parameter | Description |
---|---|
source | Document or node to be converted. |
Return value
Saved conversion results of a Document object.
Description
This method performs an XSLT transformation at a specified node, the result is as a Document objectReturn.
Conversion for use importStylesheet() Specified XSLT stylesheet and setParameter() Specified parameter value.