Re: [xslt] Error handling in libxslt

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.

for details


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
> but I
> could't see anything. is no
> help at all.
> Are them some undocumented properties of the processor that i can use?
> _______________________________________________
> xslt mailing list, project page
> xslt gnome org

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  |  christian stocker liip ch  |  GnuPG 0x5CE1DECB

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]