[xslt] xslt error message


I cannot get an error message from libxslt. I would be very gratefull for
some advice in this!

I have this code:
 res = xsltApplyStylesheet(cur,doc,pars);
 if (res == NULL) {

  xmlErrorPtr errx;
  errx = xmlGetLastError();

It works ok as long as the transformation succeeds but when an error occurs
in the transformation
then the function xsltApplyStylesheet  returns NULL
and also xmlGetLastError() returns NULL and I don't get any error message.

Is there a function liks xsltGetLastError() or how should I be abel to
display the reson of the failure??

Kaarle Kaila

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