filter log: update schema for category "line"
[metaproxy-moved-to-github.git] / xml / schema / retrievalinfo.rnc
index 5819113..d4a2573 100644 (file)
@@ -1,7 +1,6 @@
 # Metaproxy XML config file schemas
-#  $Id: retrievalinfo.rnc,v 1.4 2006-12-12 11:01:40 marc Exp $
 # 
-#   Copyright (c) 2005-2006, Index Data.
+#   Copyright (C) 2005-2012 Index Data.
 # 
 #   See the LICENSE file for details
 # 
@@ -27,6 +26,27 @@ namespace y = "http://indexdata.com/yaz"
 
 start |= retrievalinfo
 
+marc = element y:marc {
+  attribute inputformat { xsd:string },
+  attribute outputformat { xsd:string },
+  attribute inputcharset { xsd:string },
+  attribute outputcharset { xsd:string }?,
+  attribute leaderspec { xsd:string }?
+}
+
+xslt = element y:xslt {
+  attribute stylesheet { xsd:string },
+  element y:param {
+  attribute name {xsd:string},
+  attribute value {xsd:string}
+  }*
+}
+
+usemarcon = element y:usemarcon {
+  attribute stage1 { xsd:string }?,
+  attribute stage2 { xsd:string }?
+}
+
 retrievalinfo = 
   element y:retrievalinfo { 
     attribute version { "1.0" },
@@ -39,14 +59,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 | usemarcon)*
       }?
     }+
   }