Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNode text Property     XMLDOMNode transformNodeT...     XMLDOMNode Object    
Web Workshop  |  XML (Extensible Markup Language)

transformNode Method


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 a DOM Document 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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime

See Also

Using the XSL Processor



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.