/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
-/** \file
+/** \file
\brief XML Include (not to be confused with W3C XInclude)
*/
#if HAVE_CONFIG_H
yaz_glob_res_t glob_res;
glob_ret = yaz_file_glob(wrbuf_cstr(w), &glob_res);
-
+
if (glob_ret == 0)
{
size_t i;
wrbuf_printf(w, " end include src=\"%s\" ", src);
c = xmlNewComment((const xmlChar *) wrbuf_cstr(w));
sib = xmlAddNextSibling(sib, c);
-
+
*np = sib;
wrbuf_destroy(w);
return ret;
xmlFree(src);
if (ret)
return ret;
-
+
}
}
else
struct yaz_xml_include_s s;
s.confdir = base_path;
- process_config_includes(&s, n);
- return 0;
+ return process_config_includes(&s, n);
}
/* YAZ_HAVE_XML2 */