schema: add switch-case
authorChristian Linhart <chris@demorecorder.com>
Mon, 25 Aug 2014 14:58:37 +0000 (16:58 +0200)
committerPeter Harris <pharris@opentext.com>
Mon, 25 Aug 2014 23:42:02 +0000 (19:42 -0400)
Reviewed-by: Peter Harris <pharris@opentext.com>
Reviewed-by: Ran Benita <ran234@gmail.com>
src/xcb.xsd

index 20cee5b..85f5bc2 100644 (file)
@@ -78,7 +78,9 @@ authorization from the authors.
       <xsd:group ref="expression" minOccurs="1" maxOccurs="1" />
       <xsd:choice>
         <!-- bitcase expression - bit test -->
-        <xsd:element name="bitcase" type="caseexpr" minOccurs="1" maxOccurs="unbounded" />
+        <xsd:element name="bitcase" type="caseexpr" minOccurs="0" maxOccurs="unbounded" />
+        <!-- case expression - value test -->
+        <xsd:element name="case" type="caseexpr" minOccurs="0" maxOccurs="unbounded" />
       </xsd:choice>
       <!-- default: -->
       <xsd:group ref="fields" minOccurs="0" maxOccurs="1" />