# Metaproxy XML config file schemas # # Copyright (C) 2005-2012 Index Data. # # See the LICENSE file for details # # # The RelaxNG Compact Syntax file 'retrievalinfo.rnc' is the master copy. # # The RelaxNG XML Syntax and XML Schema are generated using 'trang': # trang retrievalinfo.rnc retrievalinfo.rng # trang retrievalinfo.rnc retrievalinfo.xsd # # Config file validation is done using 'xmllint': # xmllint -/-relaxng retrievalinfo.rng retrievalinfo.xml # xmllint -/-schema retrievalinfo.xsd retirevalinfo.xml # # For information on RelaxNG see http://relaxng.org # 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" 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:backend { attribute syntax { xsd:string }, attribute name { xsd:string }?, (marc | xslt)* }? }+ }