Implement limit filter (bug #2697, bug #2698)
[metaproxy-moved-to-github.git] / xml / schema / metaproxy.rng
index 077fd86..245993c 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"/>
@@ -94,6 +99,7 @@
         <ref name="filter_sru_z3950"/>
         <ref name="filter_virt_db"/>
         <ref name="filter_z3950_client"/>
+        <ref name="filter_limit"/>
       </choice>
       <!--    | filter_zeerex_explain -->
     </element>
       </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 =