Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Processes this node and its children using the supplied XSL stylesheet, and returns the resulting transformation.
Syntax
strValue = oXMLDOMNode.transformNode(stylesheet)
Parameters
- stylesheet
- Object. Valid XML document or document fragment 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 namespace, in which case this node is treated as a standalone style sheet fragment.
The source node defines the entire context for the style sheet to operate on, so ancestor or ID navigation outside this scope is not allowed. The scope of a style sheet fragment is limited to those rules within it. Calling outside this fragment is not supported.
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.
For more information about XSL stylesheets, see the XSL Reference.
Applies To
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.