+ WRBUF fname = conf_get_fname(conf, stylesheets[i]);
+ if (!((*m)->stylesheet1 =
+ xsltParseStylesheetFile((xmlChar *) wrbuf_cstr(fname))))
+ {
+ yaz_log(YLOG_FATAL|YLOG_ERRNO, "Unable to load stylesheet: %s",
+ stylesheets[i]);
+ no_errors++;
+ }
+ wrbuf_destroy(fname);
+ }
+ else if (!strcmp(&stylesheets[i][strlen(stylesheets[i])-5], ".mmap"))
+ {
+ WRBUF fname = conf_get_fname(conf, stylesheets[i]);
+ if (!((*m)->marcmap = marcmap_load(wrbuf_cstr(fname), nt->nmem)))
+ {
+ yaz_log(YLOG_FATAL|YLOG_ERRNO, "Unable to load marcmap: %s",
+ stylesheets[i]);
+ no_errors++;
+ }
+ wrbuf_destroy(fname);
+ }
+ else
+ {
+ yaz_log(YLOG_FATAL, "Cannot handle stylesheet: %s", stylesheets[i]);