From: Adam Dickmeiss Date: Wed, 26 Feb 2014 21:03:00 +0000 (+0100) Subject: Call exsltRegisterAll in yaz_init_globals X-Git-Tag: v5.0.18~4 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=71e066dd201f095184b98199399ac7965f7f176e;hp=f41208530e726b3600657873e927a9bb33721a7c Call exsltRegisterAll in yaz_init_globals This is to enable EXSLT for XSL processing in application based on YAZ, such as Pazpar2. --- diff --git a/src/init_globals.c b/src/init_globals.c index 1f2905c..0800a4b 100644 --- a/src/init_globals.c +++ b/src/init_globals.c @@ -24,6 +24,10 @@ #include #endif +#if YAZ_HAVE_EXSLT +#include +#endif + static int yaz_init_flag = 0; #if YAZ_POSIX_THREADS static pthread_mutex_t yaz_init_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -53,6 +57,9 @@ void yaz_init_globals(void) #endif yaz_init_flag = 1; } +#if YAZ_HAVE_EXSLT + exsltRegisterAll(); +#endif #if YAZ_POSIX_THREADS pthread_mutex_unlock(&yaz_init_mutex); #endif diff --git a/src/record_conv.c b/src/record_conv.c index 34a3cc3..ca1e41e 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -702,9 +702,6 @@ yaz_record_conv_t yaz_record_conv_create() p->wr_error = wrbuf_alloc(); p->rules = 0; p->path = 0; -#if YAZ_HAVE_EXSLT - exsltRegisterAll(); -#endif return p; }