-/* $Id: data1.h,v 1.4 2002-12-16 20:27:18 adam Exp $
+/* $Id: data1.h,v 1.7 2003-05-05 20:13:28 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
#ifndef DATA1_H
#define DATA1_H
+#define ENHANCED_XELM 1
+
#include <stdio.h>
#include <yaz/nmem.h>
#include <yaz/yaz-util.h>
#include <yaz/wrbuf.h>
#include <dfa.h> /* pop */
+#include <zebra_xpath.h> /* pop */
#define d1_isspace(c) strchr(" \r\n\t\f", c)
#define d1_isdigit(c) ((c) <= '9' && (c) >= '0')
int force_indicator_length;
int force_identifier_length;
+ char leader[24]; /* Fixme! Need linear access to LEADER of MARC record */
struct data1_marctab *next;
} data1_marctab;
typedef struct data1_xpelement
{
char *xpath_expr;
+#ifdef ENHANCED_XELM
+ struct xpath_location_step xpath[XPATH_STEP_COUNT];
+ int xpath_len;
+#endif
struct DFA *dfa;
data1_termlist *termlists;
struct data1_xpelement *next;
YAZ_EXPORT const char *data1_systag_lookup(data1_absyn *absyn, const char *tag,
const char *default_value);
+YAZ_EXPORT void data1_concat_text(data1_handle dh, NMEM m, data1_node *n);
+
YAZ_END_CDECL
#endif