Christian, If you uncomment the code that assigns the callback and then try an xml file with errors you will get a segmentation fault. I'm not sure I'm using the right function assignment or the right parameters. John On Fri, Jan 08, 2010 at 02:20:28PM +0100, Christian Egli wrote: > Hi > > "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx> writes: > > It would be nice if libxml2 would use it also. This would be a big > > advantage for the Web demo and for anyone making a GUI for > > liblouisxml. libxml2 seems to be capable of doing so, but I can't get > > it to work. The code is in initLlibxml2 in the libloussxml.c module. > > I don't know if that helps, but I tried to register an error handler > from the python code where I registered an extension module new function > in libxslt. For some reason it didn't seem to get invoked. > > > Many thanks to anyone who can figure this out. > > Aside from the fact that the code that registers the call back is > commented out, the code looks all right. Also I'm not sure if you need > the & when assigning the function liblouisxmlErrors to the handler > variable. What exactly is not working? > > -- > Christian Egli > Swiss Library for the Blind, Visually Impaired and Print Disabled > Grubenstrasse 12, CH-8045 Z??rich, Switzerland > For a description of the software and to download it go to > http://www.jjb-software.com -- John J. boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software and to download it go to http://www.jjb-software.com