Re: [xml] Receiving RELAX NG validity error callbacks



On Mon, Jul 03, 2006 at 06:57:33PM -0700, Todd Ditchendorf wrote:
To Daniel/friendly neighborhood libxml2 developers/anyone interested  
in this bug,

I believe I was mistaken about this bug. This bug does *not* exist in  
2.6.26 as I reported. I *does* exist in 2.6.16 which I believe is the  
version that shipped with Mac OS X 10.4 Tiger. I was using this built- 
in version (2.6.16) mistakenly when running my tests. I had thought I  
was using 2.6.26, but I was wrong.

  haha :-)

The bug no longer exists in 2.6.26 as far as I can tell. Apparently  
it was fixed sometime between the two versions.

So my humble advice to anyone wanting to use the RELAX NG features of  
libxml2 is to use the very latest version: 2.6.26.

In 2.6.26, the "xmlStructuredErrorFunc" reports RNG validity errors.  
I had assumed that the "xmlTextReaderErrorFunc" would report these,  
but I guess I was wrong about that too. Although... perhaps *that's*  
a bug? ;)

  yeah, I still think the bugzilla entry should stay as one could logically
expect the errors to be tunnelled back to the error handler associated to
the reader.

  But it's good that you found the workaround in the more recent versions
as it's not a completely trivial change (though it should not be hard to do).

Daniel

-- 
Daniel Veillard      | Red Hat http://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]