+
+ /* fetch first using dom-brief.xsl */
+ YAZ_CHECK_EQ(tl_fetch_first_compare(
+ zh, "B", yaz_oid_recsyn_xml,
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<title>How to program a computer</title>\n"),
+ ZEBRA_OK);
+ /* fetch first using dom-snippets.xsl */
+ YAZ_CHECK_EQ(tl_fetch_first_compare(
+ zh, "snippet", yaz_oid_recsyn_xml,
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<root>\n"
+ " <record xmlns=\"http://www.indexdata.com/zebra/\">\n"
+ " <snippet name=\"title\" type=\"w\">How to program a <s>computer</s></snippet>\n"
+ "</record>\n"
+ " <title>How to program a computer</title>\n"
+ "</root>\n"),
+ ZEBRA_OK);
+