-/* $Id: xslt1.c,v 1.3 2005-05-31 14:18:17 adam Exp $
+/* $Id: xslt1.c,v 1.6 2006-02-23 11:26:00 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
char path[256];
ZebraService zs = start_up(0, argc, argv);
- ZebraHandle zh = zebra_open(zs);
+ ZebraHandle zh = zebra_open(zs, 0);
- check_filter(zs, "xslt1");
+ check_filter(zs, "xslt");
zebra_select_database(zh, "Default");
zebra_init(zh);
- zebra_set_resource(zh, "recordType", "xslt1.marcschema.xml");
+ zebra_set_resource(zh, "recordType", "xslt.marcschema-col.xml");
zebra_begin_trans(zh, 1);
sprintf(path, "%.200s/marc-col.xml", get_srcdir());
do_query(__LINE__, zh, "@attr 1=title computer", 3);
do_query(__LINE__, zh, "@attr 1=control 11224466", 1);
- do_query_x(__LINE__, zh, "@attr 1=titl computer", 0, 121);
+ do_query_x(__LINE__, zh, "@attr 1=titl computer", 0, 114);
+ do_query_x(__LINE__, zh, "@attr 1=4 computer", 0, 121);
return close_down(zh, zs, 0);
}