Re: [xslt] Debug by default still



On Tue, Jul 17, 2001 at 05:28:00PM +0100, Matt Sergeant wrote:
>   LibXSLT_debug_cb = NULL;
>   xsltSetGenericDebugFunc(PerlIO_stderr(), (xmlGenericErrorFunc)LibXSLT_debug_handler);

> 
> And then in LibXSLT_debug_handler:
> 
>     if (LibXSLT_debug_cb && SvTRUE(LibXSLT_debug_cb)) {
>       ... call the handler
>     }
> 
> Otherwise we do nothing with the message.

  Well then you're loosing a lot of cycles at the libxslt level formatting
those messages.

> Now in AxKit, we don't set that debug callback at all. Not anywhere. Yet
> errors still go to STDERR.

  Drop the xsltSetGenericDebugFunc() call and run it only if LibXSLT_debug_cb
is turned on, this should fix the problem in a way similar to xsltproc.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




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