Modify schema for sru_z3950 (database? -> database*)
[metaproxy-moved-to-github.git] / xml / schema / metaproxy.rng
index 077fd86..4f59d79 100644 (file)
       <attribute name="version">
         <value>1.0</value>
       </attribute>
+      <optional>
+        <element name="mp:dlpath">
+          <data type="string"/>
+        </element>
+      </optional>
       <element name="mp:start">
         <attribute name="route">
           <data type="NCName"/>
@@ -85,6 +90,7 @@
         <ref name="filter_cql_rpn"/>
         <ref name="filter_frontend_net"/>
         <ref name="filter_http_file"/>
+        <ref name="filter_limit"/>
         <ref name="filter_load_balance"/>
         <ref name="filter_log"/>
         <ref name="filter_multi"/>
         <data type="integer"/>
       </element>
     </optional>
+    <optional>
+      <element name="mp:connect-max">
+        <data type="integer"/>
+      </element>
+    </optional>
   </define>
   <define name="filter_http_file">
     <attribute name="type">
         <data type="NCName"/>
       </attribute>
     </optional>
-    <oneOrMore>
+    <zeroOrMore>
       <element name="mp:database">
         <attribute name="name">
           <data type="NCName"/>
         </attribute>
         <ref name="any"/>
       </element>
-    </oneOrMore>
+    </zeroOrMore>
   </define>
   <define name="filter_virt_db">
     <attribute name="type">
         <data type="NCName"/>
       </attribute>
     </optional>
+    <optional>
+      <element name="mp:pass-vhosts">
+        <data type="boolean"/>
+      </element>
+    </optional>
     <oneOrMore>
       <element name="mp:virtual">
         <optional>
       </element>
     </optional>
   </define>
+  <define name="filter_limit">
+    <attribute name="type">
+      <value>limit</value>
+    </attribute>
+    <optional>
+      <element name="mp:limit">
+        <optional>
+          <attribute name="bandwidth">
+            <data type="integer"/>
+          </attribute>
+        </optional>
+        <optional>
+          <attribute name="pdu">
+            <data type="integer"/>
+          </attribute>
+        </optional>
+        <optional>
+          <attribute name="search">
+            <data type="integer"/>
+          </attribute>
+        </optional>
+        <optional>
+          <attribute name="retrieve">
+            <data type="integer"/>
+          </attribute>
+        </optional>
+      </element>
+    </optional>
+  </define>
 </grammar>
 <!--
   filter_zeerex_explain =