From 1d1083ab048f9f1000f0bf11225be23a6730cb06 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 31 May 2005 14:18:17 +0000 Subject: [PATCH] XSLT filter uses XML config for to list each supported recordSchema. --- test/xslt/Makefile.am | 4 ++-- test/xslt/index.xsl | 20 ++++++++++++++++++++ test/xslt/marc1.xsl | 35 ----------------------------------- test/xslt/marcschema.xml | 8 ++++++++ test/xslt/xslt1.c | 4 ++-- test/xslt/xslt2.c | 4 ++-- test/xslt/xslt3.c | 4 ++-- 7 files changed, 36 insertions(+), 43 deletions(-) create mode 100644 test/xslt/index.xsl delete mode 100644 test/xslt/marc1.xsl create mode 100644 test/xslt/marcschema.xml diff --git a/test/xslt/Makefile.am b/test/xslt/Makefile.am index 69ea9cb..883ebc7 100644 --- a/test/xslt/Makefile.am +++ b/test/xslt/Makefile.am @@ -1,9 +1,9 @@ -# $Id: Makefile.am,v 1.3 2005-05-01 07:17:47 adam Exp $ +# $Id: Makefile.am,v 1.4 2005-05-31 14:18:17 adam Exp $ check_PROGRAMS = xslt1 xslt2 xslt3 TESTS = $(check_PROGRAMS) -EXTRA_DIST=zebra.cfg marc-col.xml marc-one.xml marc1.xsl +EXTRA_DIST=zebra.cfg marc-col.xml marc-one.xml index.xsl id.xsl marcschema.xsl xslt1_SOURCES = xslt1.c xslt2_SOURCES = xslt2.c diff --git a/test/xslt/index.xsl b/test/xslt/index.xsl new file mode 100644 index 0000000..ba168e7 --- /dev/null +++ b/test/xslt/index.xsl @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + diff --git a/test/xslt/marc1.xsl b/test/xslt/marc1.xsl deleted file mode 100644 index 467fa6a..0000000 --- a/test/xslt/marc1.xsl +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <xsl:value-of select="."/> - - - diff --git a/test/xslt/marcschema.xml b/test/xslt/marcschema.xml new file mode 100644 index 0000000..f4cf959 --- /dev/null +++ b/test/xslt/marcschema.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/test/xslt/xslt1.c b/test/xslt/xslt1.c index df980ef..07788ee 100644 --- a/test/xslt/xslt1.c +++ b/test/xslt/xslt1.c @@ -1,4 +1,4 @@ -/* $Id: xslt1.c,v 1.2 2005-05-01 07:17:47 adam Exp $ +/* $Id: xslt1.c,v 1.3 2005-05-31 14:18:17 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -35,7 +35,7 @@ int main(int argc, char **argv) zebra_init(zh); - zebra_set_resource(zh, "recordType", "xslt1.marc1.xsl"); + zebra_set_resource(zh, "recordType", "xslt1.marcschema.xml"); zebra_begin_trans(zh, 1); sprintf(path, "%.200s/marc-col.xml", get_srcdir()); diff --git a/test/xslt/xslt2.c b/test/xslt/xslt2.c index 8ab9450..fe42211 100644 --- a/test/xslt/xslt2.c +++ b/test/xslt/xslt2.c @@ -1,4 +1,4 @@ -/* $Id: xslt2.c,v 1.2 2005-05-01 07:17:47 adam Exp $ +/* $Id: xslt2.c,v 1.3 2005-05-31 14:18:17 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -42,7 +42,7 @@ int main(int argc, char **argv) zebra_init(zh); - zebra_set_resource(zh, "recordType", "xslt1.marc1.xsl"); + zebra_set_resource(zh, "recordType", "xslt1.marcschema.xml"); sprintf(path, "%.200s/marc-col.xml", get_srcdir()); f = fopen(path, "rb"); diff --git a/test/xslt/xslt3.c b/test/xslt/xslt3.c index 0fb67c8..0fb1405 100644 --- a/test/xslt/xslt3.c +++ b/test/xslt/xslt3.c @@ -1,4 +1,4 @@ -/* $Id: xslt3.c,v 1.1 2005-05-01 07:17:47 adam Exp $ +/* $Id: xslt3.c,v 1.2 2005-05-31 14:18:17 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -42,7 +42,7 @@ int main(int argc, char **argv) zebra_init(zh); - zebra_set_resource(zh, "recordType", "xslt.marc1.xsl"); + zebra_set_resource(zh, "recordType", "xslt.marcschema.xml"); sprintf(path, "%.200s/marc-one.xml", get_srcdir()); f = fopen(path, "rb"); -- 1.7.10.4