-/* $Id: d1_map.c,v 1.8 2005-01-15 19:38:18 adam Exp $
+/* $Id: d1_map.c,v 1.12 2006-07-06 11:40:23 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
int local_numeric = 0;
if (!(f = data1_path_fopen(dh, file, "r")))
- {
- yaz_log(YLOG_WARN|YLOG_ERRNO, "%s", file);
return 0;
- }
res->name = 0;
res->target_absyn_ref = VAL_NONE;
res->which = DATA1N_root;
res->u.root.type = map->target_absyn_name;
- if (!(res->u.root.absyn = data1_get_absyn(dh, map->target_absyn_name)))
+ if (!(res->u.root.absyn = data1_get_absyn(dh, map->target_absyn_name,
+ DATA1_XPATH_INDEXING_ENABLE)))
{
yaz_log(YLOG_WARN, "%s: Failed to load target absyn '%s'",
map->name, map->target_absyn_name);
if (map_children(dh, n, map, res1, m) < 0)
{
- data1_free_tree(dh, res);
return 0;
}
return res;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+