From: Adam Dickmeiss Date: Mon, 8 Oct 2007 11:47:20 +0000 (+0000) Subject: llow EXSLT to be used if it's available. X-Git-Tag: YAZPROXY.1.3.1~3 X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=commitdiff_plain;h=77e4d83cc9e1d55c7d47c80b33f3b04125ae8c15 llow EXSLT to be used if it's available. --- diff --git a/NEWS b/NEWS index 09c5bbe..2b0efaa 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +Allow EXSLT to be used if it's available. + --- 1.3.0 2007/05/09 Debian packages libyazproxy2, libyazproxy2-dev. These depend on diff --git a/etc/Makefile.am b/etc/Makefile.am index 533157e..7d73ff5 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.7 2006-08-14 09:26:02 adam Exp $ +# $Id: Makefile.am,v 1.8 2007-10-08 11:47:20 adam Exp $ proxydatadir=$(datadir)/yazproxy proxydata_DATA = \ @@ -8,6 +8,7 @@ proxydata_DATA = \ MARC21slim2MODS3.xsl \ MARC21slim2RDFDC.xsl \ MARC21slimUtils.xsl \ + exslttest.xsl \ config.xml \ explain.xml \ voyager.xml \ diff --git a/etc/config.xml b/etc/config.xml index 6228571..ca243e0 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -1,5 +1,5 @@ - + Dublin Core dc + + EXSLT Test + exslt + + 2 diff --git a/etc/exslttest.xsl b/etc/exslttest.xsl new file mode 100644 index 0000000..27dcf2c --- /dev/null +++ b/etc/exslttest.xsl @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + diff --git a/src/yaz-proxy-main.cpp b/src/yaz-proxy-main.cpp index 84bd47c..aa6b7c0 100644 --- a/src/yaz-proxy-main.cpp +++ b/src/yaz-proxy-main.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy-main.cpp,v 1.20 2006-07-06 11:50:26 adam Exp $ +/* $Id: yaz-proxy-main.cpp,v 1.21 2007-10-08 11:47:21 adam Exp $ Copyright (c) 1998-2006, Index Data. This file is part of the yazproxy. @@ -56,6 +56,10 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #endif +#if YAZ_HAVE_EXSLT +#include +#endif + using namespace yazpp_1; void usage(char *prog) @@ -209,6 +213,10 @@ static void child_run(SocketManager *m, int run) xmlSetGenericErrorFunc((void *) "XML", proxy_xml_error_handler); xsltSetGenericErrorFunc((void *) "XSLT", proxy_xml_error_handler); #endif + +#if YAZ_HAVE_EXSLT + exsltRegisterAll(); +#endif #ifdef WIN32 #else yaz_log(YLOG_LOG, "0 proxy run=%d pid=%ld", run, (long) getpid());