xelm test
authorpop <pop>
Tue, 4 Feb 2003 11:42:22 +0000 (11:42 +0000)
committerpop <pop>
Tue, 4 Feb 2003 11:42:22 +0000 (11:42 +0000)
test/Makefile.am
test/xelm/records/pop.xml [new file with mode: 0755]
test/xelm/records/strucc.xml [new file with mode: 0755]
test/xelm/test.sh [new file with mode: 0755]
test/xelm/user.abs [new file with mode: 0644]
test/xelm/zebra.cfg [new file with mode: 0644]

index 1b7443b..e961a01 100644 (file)
@@ -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 (executable)
index 0000000..a477884
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<user xmlns="http://www.technomat.hu/Classic/" id="pop">\r
+       <name>Peter Popovics</name>\r
+        <description xml:lang="hu">Leiras</description>\r
+        <description xml:lang="en">Description</description>\r
+       <email>pop@technomat.hu</email>\r
+       <url>http://www.technomat.hu/pop</url>\r
+       <age>29</age>\r
+</user>\r
diff --git a/test/xelm/records/strucc.xml b/test/xelm/records/strucc.xml
new file mode 100755 (executable)
index 0000000..a7df128
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<user xmlns="http://www.technomat.hu/Classic/" id="strucc">\r
+       <name>Strucc Emu</name>\r
+        <description xml:lang="hu">Leiras</description>\r
+        <description xml:lang="en" test="asd">Testit</description>\r
+       <email>strucc@technomat.hu</email>\r
+       <url>http://www.technomat.hu/strucc</url>\r
+       <age>5</age>\r
+</user>\r
diff --git a/test/xelm/test.sh b/test/xelm/test.sh
new file mode 100755 (executable)
index 0000000..039e4d0
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exit 0
diff --git a/test/xelm/user.abs b/test/xelm/user.abs
new file mode 100644 (file)
index 0000000..af4a45e
--- /dev/null
@@ -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 (file)
index 0000000..2b9add5
--- /dev/null
@@ -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