Home > PHP > Function > XSLT (PHP4) > xslt_set_error_handler()

xslt_set_error_handler()

xslt_set_error_handler - Set an error handler for a
XSLTprocessor

Syntax

xslt_set_error_handler (resource $xh, mixed $handler, resource $xh, int $error_level, int $error_code, array $messages, resource $xh, mixed $handler, resource $xh, int $error_level, int $error_code, array $messages)

Arguments

  • xh - The XSLTprocessor link identifier, created with xslt_create().
  • handler - The user function needs to accept four parameters: the XSLTprocessor, the error level, the error code and an array of messages. The function can be shown as: error_handler ( resource , int , int , array )
  • xh
  • error_level
  • error_code
  • messages
  • xh - The XSLTprocessor link identifier, created with xslt_create().
  • handler - The user function needs to accept four parameters: the XSLTprocessor, the error level, the error code and an array of messages. The function can be shown as: error_handler ( resource , int , int , array )
  • xh
  • error_level
  • error_code
  • messages

Description

Set an error handler function for the XSLTprocessor given by xh, this function will be called whenever an error occurs in the XSLTtransformation (this function is also called for notices).

Version

PHP 4.0.4

Return value

No value is returned.