else {
+ if (el->record_conv)
+ {
+ wrbuf_printf(p->wr_error, "Element <retrieval>: "
+ "only one <backend> allowed");
+ yaz_record_conv_destroy(el->record_conv);
+ return -1;
+ }
+
/* parsing attributees */
struct _xmlAttr *attr;
for (attr = ptr->properties; attr; attr = attr->next){
"Element <marc inputformat='not-existent'>: Unsupported"
" input format defined by attribute value", 0));
+
+ YAZ_CHECK(conv_configure_test("<retrievalinfo>"
+ "<retrieval syntax=\"usmarc\">"
+ "<backend syntax=\"xml\" name=\"dc\">"
+ "<xslt stylesheet=\"test_record_conv.xsl\"/>"
+ "<marc"
+ " inputcharset=\"utf-8\""
+ " outputcharset=\"marc-8\""
+ " inputformat=\"xml\""
+ " outputformat=\"marc\""
+ "/>"
+ "</backend>"
+ "<backend/>"
+ "</retrieval>"
+ "</retrievalinfo>",
+ "Element <retrieval>: "
+ "only one <backend> allowed", 0));
+
+
YAZ_CHECK(conv_configure_test("<retrievalinfo>"
"<retrieval syntax=\"usmarc\">"
"<backend syntax=\"xml\" name=\"dc\">"