Processes this node and its children using the supplied XSL style sheet, and returns the resulting transformation.
Syntax
strValue = oXMLDOMNode.transformNode(stylesheet)
Parameters
stylesheet
Object. Valid XML document or DOM node, which consists of XSL elements that direct the transformation of this node.
Returns
String. Returns a string that contains the product of the transformation of this XML document based on the XSL style sheet.
Remarks
The stylesheet parameter must be either an XMLDOMDocument node, in which case the document is assumed to be an XSL style sheet, or a DOM node in the XSL stylesheet, in which case this node is treated as a standalone style sheet fragment.
The source node defines a context for the stylesheet to operate on, but navigation outside this scope is allowed. For instance, a stylesheet could use the ancestor or id methods to access other parts of the document.
This method supports both standalone and embedded style sheets, and additionally 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 XSL style sheets, see the XSL Reference.
Applies To
XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime
See Also