JavaScript: The Definitive Guide

25.342. XSLTProcessor.transformToDocument( ): transform a node or document to a new document

25.342.1. Synopsis

Document transformToDocument(Node sourceNode)

25.342.1.1. Arguments

source

The document or node that is to be transformed.

25.342.1.2. Returns

A Document object that holds the result of the transformation.

25.342.2. Description

This method performs an XSLT transformation on the specified node, returning the result as a Document object. The transformation uses the XSLT stylesheet specified by importStylesheet( ) and the parameter values specified with setParameter( ).

Категории