Zebra 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
Zebra 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
static int attr_content(struct _xmlAttr *attr, const char *name,
const char **dst_content)
{
static int attr_content(struct _xmlAttr *attr, const char *name,
const char **dst_content)
{
- yaz_log(YLOG_WARN,
- "alvis filter: config file %s :"
- " expected root element <schemaInfo>",
- tinfo->full_name);
+ yaz_log(YLOG_WARN,
+ "alvis filter: config file %s :"
+ " expected root element <schemaInfo>",
+ tinfo->full_name);
if (ptr->type != XML_ELEMENT_NODE)
continue;
if (!XML_STRCMP(ptr->name, "schema"))
if (ptr->type != XML_ELEMENT_NODE)
continue;
if (!XML_STRCMP(ptr->name, "schema"))
attr_content(attr, "stylesheet", &schema->stylesheet);
attr_content(attr, "default", &schema->default_schema);
}
attr_content(attr, "stylesheet", &schema->stylesheet);
attr_content(attr, "default", &schema->default_schema);
}
schema->name, schema->identifier, schema->stylesheet); */
/* find requested schema */
schema->name, schema->identifier, schema->stylesheet); */
/* find requested schema */
- if (!yaz_filepath_resolve(schema->stylesheet, tinfo->profile_path,
- NULL, tmp_xslt_full_name))
+ if (!yaz_filepath_resolve(schema->stylesheet, tinfo->profile_path,
+ NULL, tmp_xslt_full_name))
"alvis filter: stylesheet %s not found in path %s",
schema->stylesheet, tinfo->profile_path);
return ZEBRA_FAIL;
}
"alvis filter: stylesheet %s not found in path %s",
schema->stylesheet, tinfo->profile_path);
return ZEBRA_FAIL;
}
{
const char *split_level_str = 0;
attr_content(attr, "level", &split_level_str);
{
const char *split_level_str = 0;
attr_content(attr, "level", &split_level_str);
tinfo->profile_path = res_get(res, "profilePath");
yaz_log(YLOG_LOG, "alvis filter: profilePath %s", tinfo->profile_path);
tinfo->profile_path = res_get(res, "profilePath");
yaz_log(YLOG_LOG, "alvis filter: profilePath %s", tinfo->profile_path);
else if (!strcmp("delete", type_str))
yaz_log(YLOG_WARN, "alvis filter delete: to be implemented");
else
else if (!strcmp("delete", type_str))
yaz_log(YLOG_WARN, "alvis filter delete: to be implemented");
else
xmlFreeTextReader(tinfo->reader);
tinfo->reader = xmlReaderForIO(ioread_ex, ioclose_ex,
p /* I/O handler */,
xmlFreeTextReader(tinfo->reader);
tinfo->reader = xmlReaderForIO(ioread_ex, ioclose_ex,
p /* I/O handler */,
{
xmlNodePtr ptr2 = xmlCopyNode(ptr, 1);
xmlDocPtr doc = xmlNewDoc((const xmlChar*) "1.0");
{
xmlNodePtr ptr2 = xmlCopyNode(ptr, 1);
xmlDocPtr doc = xmlNewDoc((const xmlChar*) "1.0");
&& p->comp->u.complex->generic->elementSpec
&& p->comp->u.complex->generic->elementSpec->which ==
Z_ElementSpec_elementSetName)
&& p->comp->u.complex->generic->elementSpec
&& p->comp->u.complex->generic->elementSpec->which ==
Z_ElementSpec_elementSetName)
if (schema->stylesheet_xsp)
xsltSaveResultToString(&buf_out, &len_out, resDoc,
if (schema->stylesheet_xsp)
xsltSaveResultToString(&buf_out, &len_out, resDoc,
xsltSaveResultToString(&buf_out, &len_out, resDoc,
schema->stylesheet_xsp);
else
xsltSaveResultToString(&buf_out, &len_out, resDoc,
schema->stylesheet_xsp);
else
p->output_format = yaz_oid_recsyn_sutrs;
p->rec_len = len_out;
p->rec_buf = odr_malloc(p->odr, p->rec_len);
memcpy(p->rec_buf, buf_out, p->rec_len);
p->output_format = yaz_oid_recsyn_sutrs;
p->rec_len = len_out;
p->rec_buf = odr_malloc(p->odr, p->rec_len);
memcpy(p->rec_buf, buf_out, p->rec_len);