- else if (!xmlStrcmp(attr->name, BAD_CAST "syntax")
- && attr->children
- && attr->children->type == XML_TEXT_NODE){
- el->backend_syntax
- = yaz_str_to_z3950oid(p->odr, CLASS_RECSYN,
- (const char *) attr->children->content);
-
- if (!el->backend_syntax){
- wrbuf_printf(p->wr_error,
+ else if (!xmlStrcmp(attr->name, BAD_CAST "syntax")
+ && attr->children
+ && attr->children->type == XML_TEXT_NODE)
+ {
+ el->backend_syntax
+ = yaz_string_to_oid_odr(
+ yaz_oid_std(),
+ CLASS_RECSYN,
+ (const char *) attr->children->content,
+ p->odr);
+ if (!el->backend_syntax)
+ {
+ wrbuf_printf(p->wr_error,