Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This event fires before the style sheet is applied to a node.

Note:
The ontransformnodeevent does not fire on DOMDocument for stylesheets using the XLST namespace — http://www.w3.org/1999/XSL/Transform. It does, however, fire on DOMDocument for stylesheets using the XSL namespace — http://www.w3.org/XSL/Transform/1.0.

Script Syntax

Copy Code
		
boolVal = ontransformnode(
nodeCode, 
nodeData);

Remarks

Script Parameters

nodeCode

Indicates the current node in the style sheet.

nodeData

Indicates the current node in the XML source data.

Script Return Value

Boolean. Returns True to indicate that transformation processing is to continue; returns False to indicate that transformation processing should stop.

C/C++Syntax

Copy Code
HRESULT ontransformnode(
  IXMLDOMNode* 
pCode,
  IXMLDOMNode* 
pData,
  VARIANT 
vBool
);

Remarks

C/C++ Parameters

pCode

[in] Address of the current node in the XSL style sheet.

pData

[in] Address of the current node in the XML source data.

vBool

[out, retval] Boolean return value. Returns True if transformation processing is to continue; returns False to stop transformation processing.

C/C++ Return Values

S_OK is the value returned if the event is successful.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

The event handler for this event can be explicitly set using the ontransformnode Property.

This member is an extension of the Worldwide Web Consortium (W3C) Document Object Model (DOM).

This event applies to the following interface:

DOMDocument.

See Also

Other Resources