session_shared: negotiate init sz parameters MP-465
[metaproxy-moved-to-github.git] / xml / schema / filter_session_shared.rnc
index a476008..56e0504 100644 (file)
@@ -1,22 +1,4 @@
-# Metaproxy XML config file schemas
-# 
-#   Copyright (C) 2005-2011 Index Data.
-# 
-#   See the LICENSE file for details
-# 
-# 
-# The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
-# 
-# The RelaxNG XML Syntax and XML Schema are generated using 'trang':
-# trang metaproxy.rnc metaproxy.rng 
-# trang metaproxy.rnc metaproxy.xsd 
-# 
-# Config file validation is done using 'xmllint':
-# xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml 
-# xmllint -/-schema metaproxy.xsd config-bytarget.xml
-# 
-# For information on RelaxNG see http://relaxng.org 
-# see also http://books.xmlschemata.org/relaxng/
+# Metaproxy XML config file schema
 
 namespace mp = "http://indexdata.com/metaproxy"
 
@@ -25,11 +7,17 @@ filter_session_shared =
   attribute id { xsd:NCName }?,
   attribute name { xsd:NCName }?,
   element mp:resultset {
-    attribute max { xsd:integer },
-    attribute ttl { xsd:integer },
-    attribute optimizesearch { xsd:boolean }
+    attribute max { xsd:integer }?,
+    attribute ttl { xsd:integer }?,
+    attribute optimizesearch { xsd:boolean }?,
+    attribute restart { xsd:boolean }?
   }?,
   element mp:session {
-    attribute ttl { xsd:integer }
+    attribute ttl { xsd:integer }?,
+    attribute max { xsd:integer }?
+  }?,
+  element mp:init {
+    attribute preferred-message-size { xsd:integer }?,
+    attribute maximum-record-size { xsd:integer }?
   }?