Microsoft XML SDK 2.6 - XML Reference

transformNode Method

Processes this node and its children using the supplied XSLT style sheet and returns the resulting transformation.

strValue = oXMLDOMNode.transformNode(stylesheet)

Parameters

stylesheet
Object. Valid XML document or DOM node that consists of XSLT elements that direct the transformation of this node.

Return Value

String. Returns a string that contains the product of the transformation of this XML document based on the XSLT style sheet.

Remarks

The stylesheet parameter must be either a DOMDocument node, in which case the document is assumed to be an XSL style sheet, or a DOM node in the XSL style sheet, in which case this node is treated as a stand-alone style sheet fragment.

The source node defines a context for the style sheet to operate on, but navigation outside this scope is allowed. For instance, a style sheet could use the id function to access other parts of the document.

This method supports both stand-alone and embedded style sheets and also provides the ability to run a localized style sheet fragment against a particular source node.

This member is an extension of the W3C DOM.

For more information about XSLT style sheets, see the XSLT Reference.

See Also

Using the XSLT Processor

Applies To: XMLDOMAttribute Object | XMLDOMCDATASection Object | XMLDOMCharacterData Object | XMLDOMComment Object | DOMDocument Object | XMLDOMDocumentFragment Object | XMLDOMDocumentType Object | XMLDOMElement Object | XMLDOMEntity Object | XMLDOMEntityReference Object | XMLDOMNode Object | XMLDOMNotation Object | XMLDOMProcessingInstruction Object | XMLDOMText Object | XTLRuntime Object