/* This file is part of the Zebra server.
- Copyright (C) 1995-2008 Index Data
+ Copyright (C) 1994-2009 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
zh, "snippet", yaz_oid_recsyn_xml,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<root>\n"
- " <z:meta xmlns:z=\"http://indexdata.com/zebra-2.0\" name=\"snippet\">"
- "<record xmlns=\"http://www.indexdata.com/zebra/\">\n"
+ " <record xmlns=\"http://www.indexdata.com/zebra/\">\n"
" <snippet name=\"title\" type=\"w\">How to program a <s>computer</s></snippet>\n"
- "</record></z:meta>\n"
+ "</record>\n"
" <title>How to program a computer</title>\n"
"</root>\n"),
ZEBRA_OK);
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, "selected", 1));
+ 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\">etext/1338\n"
- " Project Gutenberg\n"
- " <s>Selected</s> Prose of Oscar Wilde</snippet>\n"
+ " <snippet name=\"any\" type=\"w\" fields=\"title\">"
+ "Selected Prose of <s>Oscar</s> Wilde"
+ "</snippet>\n"
+ " <snippet name=\"any\" type=\"w\" fields=\"creator\">"
+ "Wilde, <s>Oscar</s>, 1854-1900"
+ "</snippet>\n"
"</record>"),
ZEBRA_OK);
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab