[Xcb] [PATCH proto 4/4] schema: add switch-case
Christian Linhart
chris at demorecorder.com
Mon Aug 25 07:58:37 PDT 2014
---
src/xcb.xsd | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/xcb.xsd b/src/xcb.xsd
index 6415729..7ac3232 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -74,15 +74,17 @@ authorization from the authors.
<!-- switch expression -->
<xsd:complexType name="switchexpr">
<xsd:sequence>
<!-- switch(expression) -->
<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" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
--
2.0.1
More information about the Xcb
mailing list