From: Adam Dickmeiss Date: Fri, 26 Jan 2007 14:46:31 +0000 (+0000) Subject: Correct schema WRT to 'marc' and 'xslt' elements. These may be mixed X-Git-Tag: METAPROXY.1.0.10~52 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=65891117aa6fc2bc628b907489d57e5a845ad8a8;p=metaproxy-moved-to-github.git Correct schema WRT to 'marc' and 'xslt' elements. These may be mixed and repeated within the 'retrival' element. --- diff --git a/xml/schema/retrievalinfo.rnc b/xml/schema/retrievalinfo.rnc index 8979c6b..c319d53 100644 --- a/xml/schema/retrievalinfo.rnc +++ b/xml/schema/retrievalinfo.rnc @@ -1,7 +1,7 @@ # Metaproxy XML config file schemas -# $Id: retrievalinfo.rnc,v 1.5 2007-01-25 11:25:20 adam Exp $ +# $Id: retrievalinfo.rnc,v 1.6 2007-01-26 14:46:31 adam Exp $ # -# Copyright (c) 2005-2006, Index Data. +# Copyright (c) 2005-2007, Index Data. # # See the LICENSE file for details # @@ -27,6 +27,16 @@ namespace y = "http://indexdata.com/yaz" 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" }, @@ -39,14 +49,7 @@ retrievalinfo = element y:backend { attribute syntax { xsd:string }, attribute name { xsd:string }?, - element y:marc { - attribute inputformat { xsd:string }, - attribute outputformat { xsd:string }, - attribute inputcharset { xsd:string } - }?, - element y:xslt { - attribute stylesheet { xsd:string } - }? + (marc | xslt)* }? }+ }