-#define q(qry,hits) do_query(__LINE__,zh,qry,hits)
-
- q("@attr 1=/root content",1);
- q("@attr 1=/root/first content",1);
- q("@attr {1=/root/first[@attr='danish']} content",1);
- q("@attr {1=/root/second[@attr='danish lake']} content",1);
- q("@attr {1=/root/third[@attr='dansk s\xc3\xb8']} content",1);
+ YAZ_CHECK(tl_query(zh, "@attr 1=/root content",1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=/root/first content",1));
+ YAZ_CHECK(tl_query(zh, "@attr {1=/root/first[@attr='danish']} content",1));
+ YAZ_CHECK(tl_query(zh, "@attr {1=/root/second[@attr='danish lake']} content",1));
+ YAZ_CHECK(tl_query(zh, "@attr {1=/root/third[@attr='dansk s\xc3\xb8']} content",1));