Comment on empty element.
[metaproxy-moved-to-github.git] / etc / config.xsd
index 8079322..dbbad80 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: config.xsd,v 1.4 2006-01-16 12:03:11 mike Exp $ -->
+<!-- $Id: config.xsd,v 1.6 2006-01-16 12:29:03 mike Exp $ -->
 <!--
        This Schema prescribes the format of YP2 configuration files.
        Invoke it like this:
@@ -26,7 +26,7 @@
 
   <xs:element name="start">
     <xs:complexType>
-      <!-- ### We need to specify here that the element is empty -->
+      <!-- Absence of elements listed here mandates that <start> is empty -->
       <xs:attribute name="route" use="required" type="xs:NCName"/>
     </xs:complexType>
   </xs:element>
        <!-- type="auth_simple" or type="backend_test" -->
        <!-- No elements included -->
 
+       <!-- type="session_shared" -->
+       <!-- No example configuration to deduce from yet -->
+
+       <!-- type="template" -->
+       <!-- No example configuration to deduce from yet -->
+
       </xs:choice>
       <xs:attribute name="id" type="xs:NCName"/>
       <xs:attribute name="refid" type="xs:NCName"/>
-      <xs:attribute name="type" type="xs:NCName"/>
+      <xs:attribute name="type">
+        <xs:simpleType>
+          <xs:restriction base="xs:NCName">
+            <xs:enumeration value="frontend_net"/>
+            <xs:enumeration value="z3950_client"/>
+            <xs:enumeration value="log"/>
+            <xs:enumeration value="virt_db"/>
+            <xs:enumeration value="auth_simple"/>
+            <xs:enumeration value="backend_test"/>
+            <xs:enumeration value="multi"/>
+            <xs:enumeration value="session_shared"/>
+            <xs:enumeration value="template"/>
+          </xs:restriction>
+        </xs:simpleType>
+      </xs:attribute>
     </xs:complexType>
   </xs:element>