'Re: [xml] "relaxng (old) error callback"'
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: <xml gnome org>
- Subject: 'Re: [xml] "relaxng (old) error callback"'
- Date: Fri, 07 Nov 2003 21:54:43 +0100
Hi,
Daniel Veillard wrote:
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
Ahh, I see. So I can attach my context to the parser or the validation
context?
Thanks,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]