xml.XSLTtransformer.doTransform

Transforms the input source based on the XSLT style sheet used to create the XSLTTtransformer instance and returns the transformed document.

Syntax

xml.XSLTtransformer.doTransform(
   doc xml.DomDocument )
  RETURNS xml.DomDocument
  1. doc defines the input source.

Usage

This method transforms the input source based on the XSLT style sheet used to create the XSLTTtransformer instance and returns the transformed document. It raises a XML_ERROR_FAILED exception in case of critical error.

The operation may return a new document that may be incomplete. You must check for errors that may occur during the transformation with the xml.XSLTtransfomer.getErrorsCount() and xml.XSLTtransformer.getErrorDescription methods.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).

To see these methods in a working example, see Example: Using xml.XSLTtransformer methods.