X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=xml%2Fschema%2Fretrievalinfo.rnc;h=8d3a5f564ef187a6badc4b2820a09664d74bf839;hb=b8f2a2ba8d050d936b7f5fbdd6c2d057d032fec7;hp=023fe8a02cdf8feb5f7a84b609015e821ebedc87;hpb=71995159f745f963fa5a38c169014b9d0e024af2;p=metaproxy-moved-to-github.git diff --git a/xml/schema/retrievalinfo.rnc b/xml/schema/retrievalinfo.rnc index 023fe8a..8d3a5f5 100644 --- a/xml/schema/retrievalinfo.rnc +++ b/xml/schema/retrievalinfo.rnc @@ -1,7 +1,6 @@ # Metaproxy XML config file schemas -# $Id: retrievalinfo.rnc,v 1.1 2006-11-29 14:49:20 marc Exp $ # -# Copyright (c) 2005-2006, Index Data. +# Copyright (C) 2005-2011 Index Data. # # See the LICENSE file for details # @@ -19,28 +18,37 @@ # For information on RelaxNG see http://relaxng.org # see also http://books.xmlschemata.org/relaxng/ -#namespace y = "http://indexdata.com/yaz" -namespace y = "http://indexdata.com/metaproxy" +namespace y = "http://indexdata.com/yaz" -#start = retrievalinfo +# need to be in different namespace then metaproxy, otherwise +# xslt element definition clashes in XML Schema files +# namespace y = "http://indexdata.com/metaproxy" + +start |= retrievalinfo + +marc = element y:marc { + attribute inputformat { xsd:string }, + attribute outputformat { xsd:string }, + attribute inputcharset { xsd:string } +} + +xslt = element y:xslt { + attribute stylesheet { xsd:string } +} retrievalinfo = element y:retrievalinfo { + attribute version { "1.0" }, element y:retrieval { attribute syntax { xsd:string }, attribute name { xsd:string }?, attribute identifier { xsd:string }?, - attribute backendsyntax { xsd:string }?, - attribute backendname { xsd:string }?, - element y:convert { - element y:marc { - attribute inputformat { xsd:string }, - attribute outputformat { xsd:string }, - attribute inputcharset { xsd:string } - }, - element y:xslt { - attribute stylesheet { xsd:string } - }? + #attribute backendsyntax { xsd:string }?, + #attribute backendname { xsd:string }?, + element y:backend { + attribute syntax { xsd:string }, + attribute name { xsd:string }?, + (marc | xslt)* }? }+ }