summaryrefslogtreecommitdiffstats
path: root/eurephiadm/xsltparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'eurephiadm/xsltparser.c')
-rw-r--r--eurephiadm/xsltparser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eurephiadm/xsltparser.c b/eurephiadm/xsltparser.c
index 1168755..0538e1e 100644
--- a/eurephiadm/xsltparser.c
+++ b/eurephiadm/xsltparser.c
@@ -36,6 +36,7 @@
#endif
#ifdef HAVE_LIBXSLT
+#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
@@ -68,6 +69,7 @@ int xslt_print_xmldoc(FILE *dst, eurephiaVALUES *cfg, xmlDoc *xmldoc,
xmlStrPrintf(xsltfile,2046, (xmlChar *)"%s/%s%c", eGet_value(cfg, "eurephiadm_xslt_path"), xsltfname, 0);
// Load the XSLT template
+ xsltInit();
xslt = xsltParseStylesheetFile(xsltfile);
if( xslt == NULL ) {
return 0;
@@ -85,6 +87,7 @@ int xslt_print_xmldoc(FILE *dst, eurephiaVALUES *cfg, xmlDoc *xmldoc,
// Clean up
xmlFreeDoc(result);
xsltFreeStylesheet(xslt);
+ xsltCleanupGlobals();
return 1;
#else
return 0;