Enforce at least one <route> within <routes>.
authorMike Taylor <mike@indexdata.com>
Thu, 2 Feb 2006 18:20:41 +0000 (18:20 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 2 Feb 2006 18:20:41 +0000 (18:20 +0000)
(Doesn't seem to work, though.)

etc/config.xsd

index f35db43..98e7518 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: config.xsd,v 1.12 2006-01-18 15:06:12 mike Exp $ -->
+<!-- $Id: config.xsd,v 1.13 2006-02-02 18:20:41 mike Exp $ -->
 <!--
        This Schema prescribes the format of YP2 configuration files.
        Invoke it like this:
   <xs:element name="routes">
     <xs:complexType>
       <xs:sequence>
-        <xs:element maxOccurs="unbounded" ref="config:route"/>
+        <xs:element minOccurs="1" maxOccurs="unbounded" ref="config:route"/>
       </xs:sequence>
     </xs:complexType>
   </xs:element>