On Fri, Aug 14, 2009 at 02:20:43PM +0200, Daniel Veillard wrote:
On Fri, Aug 14, 2009 at 09:48:33AM +0200, Daniel Veillard wrote:
Actually I think there is a nicer way to do this, by never
registering any global extensions, just registering the functions
on the transformation context. This mean you just call xsltInit()
from the initialization routine, and forget about any global
registration altogether, no need to add pthread specific changes
either, see patch attached. It also take care of one of your
TODOs i.e detect XSLT failures, you should just check that
return values from apply_stylesheet() are not NULL (left TODO).
BTW Kaitlin reran the testsuite which led to the issue with a
version of netcf modified accordingly to my patch and the
problem is solved :-)
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/