From a911db8ff225da3d204c6e9371353895225ae231 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Tue, 12 Dec 2006 11:01:40 +0000 Subject: [PATCH] updated XML config files to use Xinclude, and to conform to new format updated recordtransform filter to accept new format updated master schemas to reflect changes --- etc/config-record-transform.xml | 36 +++--------------------------------- etc/retrieval-info.xml | 23 ++++++++++------------- src/filter_record_transform.cpp | 4 ++-- xml/schema/retrievalinfo.rnc | 11 +++++++---- 4 files changed, 22 insertions(+), 52 deletions(-) diff --git a/etc/config-record-transform.xml b/etc/config-record-transform.xml index 2370a18..ee3481b 100644 --- a/etc/config-record-transform.xml +++ b/etc/config-record-transform.xml @@ -1,5 +1,5 @@ - + @@ -18,38 +18,8 @@ Front - - + Back diff --git a/etc/retrieval-info.xml b/etc/retrieval-info.xml index d72fdfd..652a125 100644 --- a/etc/retrieval-info.xml +++ b/etc/retrieval-info.xml @@ -1,31 +1,28 @@ - + - + identifier="info:srw/schema/1/marcxml-v1.1"> + - + - - + + - + - + identifier="info:srw/schema/1/dc-v1.1"> + - + diff --git a/src/filter_record_transform.cpp b/src/filter_record_transform.cpp index 0e23da8..47467e5 100644 --- a/src/filter_record_transform.cpp +++ b/src/filter_record_transform.cpp @@ -1,4 +1,4 @@ -/* $Id: filter_record_transform.cpp,v 1.6 2006-10-10 09:17:24 adam Exp $ +/* $Id: filter_record_transform.cpp,v 1.7 2006-12-12 11:01:40 marc Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details @@ -95,7 +95,7 @@ void yf::RecordTransform::Impl::configure(const xmlNode *xml_node) if (0 == strcmp((const char *) retrieval_node->name, "retrievalinfo")) break; } - + // read configuration if ( 0 != yaz_retrieval_configure(m_retrieval, retrieval_node)){ std::string msg("RecordTransform filter config: "); diff --git a/xml/schema/retrievalinfo.rnc b/xml/schema/retrievalinfo.rnc index 7af944d..5819113 100644 --- a/xml/schema/retrievalinfo.rnc +++ b/xml/schema/retrievalinfo.rnc @@ -1,5 +1,5 @@ # Metaproxy XML config file schemas -# $Id: retrievalinfo.rnc,v 1.3 2006-11-30 23:10:26 marc Exp $ +# $Id: retrievalinfo.rnc,v 1.4 2006-12-12 11:01:40 marc Exp $ # # Copyright (c) 2005-2006, Index Data. # @@ -20,6 +20,7 @@ # see also http://books.xmlschemata.org/relaxng/ namespace y = "http://indexdata.com/yaz" + # need to be in different namespace then metaproxy, otherwise # xslt element definition clashes in XML Schema files # namespace y = "http://indexdata.com/metaproxy" @@ -33,9 +34,11 @@ retrievalinfo = attribute syntax { xsd:string }, attribute name { xsd:string }?, attribute identifier { xsd:string }?, - attribute backendsyntax { xsd:string }?, - attribute backendname { xsd:string }?, - element y:convert { + #attribute backendsyntax { xsd:string }?, + #attribute backendname { xsd:string }?, + element y:backend { + attribute syntax { xsd:string }, + attribute name { xsd:string }?, element y:marc { attribute inputformat { xsd:string }, attribute outputformat { xsd:string }, -- 1.7.10.4