Re: [xml] "relaxng (old) error callback"



On Fri, Nov 07, 2003 at 09:17:02PM +0100, Kasimier Buchcik wrote:
Hi,

I experienced today, that initializing the error handler with 
"xmlSetGenericErrorFunc(ctxt, thisGenericErrorFunction)" seems to call 
the error handler but delivers an unknown context if validating with 
"xmlRelaxNGValidateDoc".
I've tested this by passing a hardcoded context value to 
xmlSetGenericErrorFunc and got a totally different one.
Does libxml2 generate here a context and abondons the given one?

Anybody knows what causes this behaviour?

  That's normal, depending on the domain, the ctxt type will vary. 
XML_FROM_RELAXNGP or XML_FROM_RELAXNGV will get a Relax-NG parser
or validating context.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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