/* This file is part of Pazpar2.
- Copyright (C) 2006-2012 Index Data
+ Copyright (C) Index Data
Pazpar2 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
#include <yaz/yaz-util.h>
#include <yaz/nmem.h>
#include <yaz/snprintf.h>
-#include <yaz/tpath.h>
#include <yaz/xml_include.h>
#include "service_xslt.h"
xsltStylesheetPtr xsp;
struct service_xslt *next;
};
-
+
xsltStylesheetPtr service_xslt_get(struct conf_service *service,
const char *id)
{
yaz_log(YLOG_FATAL, "Multiple xslt with id=%s", id);
return -1;
}
-
+
sx = nmem_malloc(service->nmem, sizeof(*sx));
sx->id = nmem_strdup(service->nmem, id);
sx->next = service->xslt_list;
service->xslt_list = sx;
-
+
xsp_doc = xmlNewDoc(BAD_CAST "1.0");
xmlDocSetRootElement(xsp_doc, xmlCopyNode(root, 1));
sx->xsp = xsltParseStylesheetDoc(xsp_doc);