From 78b872f7c2e688a0701fab47e392e28c444b1225 Mon Sep 17 00:00:00 2001 From: pop Date: Tue, 4 Feb 2003 11:42:22 +0000 Subject: [PATCH] xelm test --- test/Makefile.am | 2 +- test/xelm/records/pop.xml | 9 +++++++++ test/xelm/records/strucc.xml | 9 +++++++++ test/xelm/test.sh | 2 ++ test/xelm/user.abs | 14 ++++++++++++++ test/xelm/zebra.cfg | 20 ++++++++++++++++++++ 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100755 test/xelm/records/pop.xml create mode 100755 test/xelm/records/strucc.xml create mode 100755 test/xelm/test.sh create mode 100644 test/xelm/user.abs create mode 100644 test/xelm/zebra.cfg diff --git a/test/Makefile.am b/test/Makefile.am index 1b7443b..e961a01 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,5 @@ -SUBDIRS=gils usmarc api dmoz xpath sort +SUBDIRS=gils usmarc api dmoz xpath sort xelm testclient_SOURCES = testclient.c diff --git a/test/xelm/records/pop.xml b/test/xelm/records/pop.xml new file mode 100755 index 0000000..a477884 --- /dev/null +++ b/test/xelm/records/pop.xml @@ -0,0 +1,9 @@ + + + Peter Popovics + Leiras + Description + pop@technomat.hu + http://www.technomat.hu/pop + 29 + diff --git a/test/xelm/records/strucc.xml b/test/xelm/records/strucc.xml new file mode 100755 index 0000000..a7df128 --- /dev/null +++ b/test/xelm/records/strucc.xml @@ -0,0 +1,9 @@ + + + Strucc Emu + Leiras + Testit + strucc@technomat.hu + http://www.technomat.hu/strucc + 5 + diff --git a/test/xelm/test.sh b/test/xelm/test.sh new file mode 100755 index 0000000..039e4d0 --- /dev/null +++ b/test/xelm/test.sh @@ -0,0 +1,2 @@ +#!/bin/sh +exit 0 diff --git a/test/xelm/user.abs b/test/xelm/user.abs new file mode 100644 index 0000000..af4a45e --- /dev/null +++ b/test/xelm/user.abs @@ -0,0 +1,14 @@ +name user + +attset bib1.att + +xpath enable +xelm //des*/ Any:w +#xelm //user/age !:n,ISBN:w +#xelm //user/name !:p +#xelm //user/@id !:w,Doc-id:w,Any:w +#xelm /user[@id="strucc"]/description[@xml:lang="en" and @test] !:w,Any:w +#xelm ///description[@xml:lang="en"] !:w,Any:w + +#elm name name Any:p +#elm age age Any:n diff --git a/test/xelm/zebra.cfg b/test/xelm/zebra.cfg new file mode 100644 index 0000000..2b9add5 --- /dev/null +++ b/test/xelm/zebra.cfg @@ -0,0 +1,20 @@ +# Simple zebra configuration file to demonstate the usage of xelm directive + +profilePath: .:../../tab:../../../yaz/tab + +attset: bib1.att +attset: explain.att + +register: register:1000M + +# Specify record type +recordType.xml: grs.xml +recordId: file + +lockDir: lock +setTmpDir: tmp +keyTmpDir: tmp +memMax: 4 + +storeKeys: 1 +storeData: 1 -- 1.7.10.4