xml.XSLTtransformer.getErrorsCount

Returns the number of errors.

Syntax

xml.XSLTtransformer.getErrorsCount()
  RETURNS INTEGER

Usage

Return the number of errors during the doTransform() call or during the CreateFromDocument() when the style sheet contains errors.

It is recommended to check if errors have been encountered after both operations, because even with errors, it is possible to transform a document.

The errors count is reset between CreateFromDocument() and doTransform().

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.