Share via


ontransformnode Event (Compact 2013)

3/26/2014

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

Syntax

  boolVal = ontransformnode(nodeCode, nodeData);
HRESULT ontransformnode(
  IXMLDOMNode* pCode,
  IXMLDOMNode* pData,
  VARIANT vBool
);

Parameters

Script

  • nodeCode
    Indicates the current node in the style sheet.
  • nodeData
    Indicates the current node in the XML source data.

C/C++

  • 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.

Return Value

Script

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

C/C++

S_OK is the value returned if the event is successful.

Remarks

Note

The ontransformnode event 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.

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.

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Events