Manage XProcessException. This exception
occurs when the processor finds a nonrecoverable error when preparing
or executing an expression, query, or stylesheet as described in the
specifications for each language.
If there are multiple errors
at prepare time, the processor attempts to report all of the errors
and only generates an XProcessException at the end of
preparation or if it reaches a point where it cannot continue. At
execution time, however, the first error results in an XProcessException
and the end of execution.
In general, XProcessExceptions should
not occur if the expression, query, or stylesheet is syntactically
and semantically valid and also valid for the types of input documents
that it is meant to process.
An XProcessException also occurs
for an XSLT message instruction where the terminate attribute evaluates
to "yes."
This is the default behavior for handling processing
errors and other messages. Applications can register an implementation
of the XMessageHandler interface at prepare time or execution time
to modify the default behavior.