+ /* testing XMLREADER input with ELEMENT stylesheet and skipped records */
+ zh = index_some(zs, "dom.dom-config-skipped.xml", "marc-col.xml");
+ YAZ_CHECK(tl_query(zh, "@attr 1=title computer", 1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=control 11224466", 0));
+ YAZ_CHECK(tl_query(zh, "@attr 1=control 11224467", 1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=control 73090924", 0));
+
+ /* testing XMLREADER input with type attributes (insert,delete,..) */
+ zh = index_some(zs, "dom.dom-config-del.xml", "del-col.xml");
+ YAZ_CHECK(tl_query(zh, "@attr 1=title a", 1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=title 1", 0));
+ YAZ_CHECK(tl_query(zh, "@attr 1=title 2", 0));
+ YAZ_CHECK(tl_query(zh, "@attr 1=title 3", 1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=title b", 1));
+
+ zh = index_some(zs, "dom.gutenberg.xml", "gutenberg-sample.xml");
+ YAZ_CHECK(tl_query(zh, "oscar", 1));
+
+ YAZ_CHECK_EQ(tl_fetch_first_compare(
+ zh, "zebra::snippet", yaz_oid_recsyn_xml,
+ "<record xmlns=\"http://www.indexdata.com/zebra/\">\n"
+ " <snippet name=\"any\" type=\"w\">"
+ "Selected Prose of <s>Oscar</s> Wilde"
+ "</snippet>\n"
+ " <snippet name=\"any\" type=\"w\">"
+ "Wilde, <s>Oscar</s>, 1854-1900"
+ "</snippet>\n"
+ "</record>"),
+ ZEBRA_OK);
+
+ zebra_close(zh);
+
+