X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fservice_xslt.c;h=eefa427510a036aa2ef981b12ff51158c3fa2d30;hb=13d672fab94a1f87ef925be478b48e8e5fe7bed1;hp=47a5f3783a44f9d4e5c6b8975ff7480019f047c0;hpb=62554b780bd35b3a99f926c1463dfd171def38fe;p=pazpar2-moved-to-github.git diff --git a/src/service_xslt.c b/src/service_xslt.c index 47a5f37..eefa427 100644 --- a/src/service_xslt.c +++ b/src/service_xslt.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2013 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 @@ -42,7 +42,7 @@ struct service_xslt xsltStylesheetPtr xsp; struct service_xslt *next; }; - + xsltStylesheetPtr service_xslt_get(struct conf_service *service, const char *id) { @@ -94,12 +94,12 @@ int service_xslt_config(struct conf_service *service, xmlNode *n) 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);