Element 'marc' is optional
[metaproxy-moved-to-github.git] / xml / schema / retrievalinfo.rnc
index 7af944d..8979c6b 100644 (file)
@@ -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.5 2007-01-25 11:25:20 adam 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,14 +34,16 @@ 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 },
           attribute inputcharset { xsd:string }
-        },
+        }?,
         element y:xslt {
           attribute stylesheet { xsd:string }
         }?