/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <yaz/retrieval.h>
#include <yaz/test.h>
#include <yaz/wrbuf.h>
#include <string.h>
#include <yaz/log.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#if YAZ_HAVE_XSLT
#include <libxml/parser.h>
"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\">"