Re: [xslt] Error handling in libxslt
- From: Christian Stocker <chregu bitflux ch>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Error handling in libxslt
- Date: Tue, 03 Apr 2007 08:45:44 +0200
Hi Terence
The PHP XML/XSLT extension do not throw any exceptions for historical
(and not that bad) reasons.
But with the "newly" (since PHP 5.1) introduced libxml error handlers,
it shouldn't be that difficult to throw exceptions at the right places
by yourself.
See http://ch2.php.net/manual/en/function.libxml-get-errors.php
for details
chregu
On 3.4.2007 3:45 Uhr, Terence Kearns wrote:
> Hi there,
> I'm writing an XML/XSLT framework in PHP5 and it utilises the bundled
> XSL extension which is based on libxslt.
>
> I would like to know if it is possible to extract meaningful error
> data from the API so I can integrate them in my exception handling.
>
> As an aside, one of the issues i am having with libxslt and libxml is
> that all fatal parsing or processing errors are not throwing PHP5
> exceptions, they are just registering PHP warnings. This is not very
> helpful for exception management and probably needs to be looked at by
> the PHP module implementors. I've never been able to generate a
> DOMException (for instance).
>
> I tried stumbling around the auto-generated API at
> http://xmlsoft.org/XSLT/html/libxslt-lib.html#LIBXSLT-LIB but I
> could't see anything. http://www.php.net/manual/en/ref.xsl.php is no
> help at all.
>
> Are them some undocumented properties of the processor that i can use?
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt gnome org
> http://mail.gnome.org/mailman/listinfo/xslt
--
christian stocker | Liip AG | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.liip.ch/ | christian stocker liip ch | GnuPG 0x5CE1DECB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]