Re: [xml] "relaxng (old) error callback"
- From: Daniel Veillard <veillard redhat com>
- To: Kasimier Buchcik <kbuchcik 4commerce de>
- Cc: xml gnome org
- Subject: Re: [xml] "relaxng (old) error callback"
- Date: Fri, 7 Nov 2003 15:43:35 -0500
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]