X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fservice_xslt.c;h=3ef5b55deeffd3d4a09213e960b91b567ae02322;hb=6d01755305a7afba15ed4bc90ac9c149ee7d130e;hp=bd4b580ed3cdbcb4bcd1ea12b25a29ed55c7445e;hpb=31babd0a7a0d4ee7091cfb740205ab6fe1c89ae5;p=pazpar2-moved-to-github.git diff --git a/src/service_xslt.c b/src/service_xslt.c index bd4b580..3ef5b55 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-2012 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 @@ -73,13 +73,13 @@ int service_xslt_config(struct conf_service *service, xmlNode *n) else { yaz_log(YLOG_FATAL, "Invalid attribute %s for xslt element", - (const char *) n->name); + (const char *) attr->name); return -1; } if (!id) { yaz_log(YLOG_FATAL, "Missing attribute id for xslt element"); - return 0; + return -1; } while (root && root->type != XML_ELEMENT_NODE) root = root->next;