Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
194
PHP XSLT Function xslt_set_error_handler
PHP Version: PHP 4 >= 4.0.4
Description
This function sets an error
handler for the xslt processor. This is a most useful
function to take care of any errors during transformation. Using this function
user can take care error handling and display user friendly error messages.
Set an error handler
function for the XSLT processor given by xh,
this function will be called whenever an error occurs in the XSLT transformation
(this function is also called for notices).
The user function needs to
accept four parameters: the XSLT processor, the error level, the error code and
an array of messages. The function can be shown as: error_handler( resourcexh, interror_level, interror_code, array messages).
In my below example, I have
used a xml file which is not well-formed.