+static void check_icu_iter3(void)
+{
+ UErrorCode status = U_ZERO_ERROR;
+ struct icu_chain * chain = 0;
+ xmlNode *xml_node;
+
+ const char * xml_str =
+ "<icu_chain id=\"sort\" locale=\"el\">\n"
+ "<transform rule=\"[:Control:] Any-Remove\"/>\n"
+ "<transform rule=\"[[:Control:][:WhiteSpace:][:Punctuation:]] Remove\"/>\n"
+ "<transform rule=\"NFD; [:Nonspacing Mark:] Remove; NFC\"/>\n"
+ "<casemap rule=\"l\"/>\n"
+ "<display/>\n"
+ "</icu_chain>\n";
+
+ xmlDoc *doc = xmlParseMemory(xml_str, strlen(xml_str));
+ YAZ_CHECK(doc);
+ if (!doc)
+ return;
+ xml_node = xmlDocGetRootElement(doc);
+ YAZ_CHECK(xml_node);
+ if (!xml_node)
+ return ;
+
+ chain = icu_chain_xml_config(xml_node, 1, &status);
+
+ xmlFreeDoc(doc);
+ YAZ_CHECK(chain);
+ if (!chain)
+ return;
+
+ YAZ_CHECK(test_iter(chain, "Adobe Acrobat Reader, 1991-1999.",
+ "[adobeacrobatreader19911999]"));
+
+ YAZ_CHECK(test_iter(chain, "Νόταρης, Γιάννης Σωτ",
+ "[νοταρηςγιαννηςσωτ]"));
+
+ icu_chain_destroy(chain);
+}
+