[Xcb] [PATCH proto 3/8] schema: add rule for sumof with nested expression

Christian Linhart chris at DemoRecorder.com
Sun Nov 2 04:47:23 PST 2014


Signed-off-by: Christian Linhart <chris at demorecorder.com>
Reviewed-by: Ran Benita <ran234 at gmail.com>
---
 src/xcb.xsd | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xcb.xsd b/src/xcb.xsd
index 85f5bc2..4ee578c 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -158,14 +158,17 @@ authorization from the authors.
       <xsd:element name="popcount">
         <xsd:complexType>
           <xsd:group ref="expression" />
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="sumof">
         <xsd:complexType>
+          <xsd:sequence>
+            <xsd:group ref="expression" minOccurs="0" maxOccurs="1"/>
+          </xsd:sequence>
           <xsd:attribute name="ref" use="required" type="xsd:string" />
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="value" type="xsd:integer" />
       <xsd:element name="bit" type="bitType" />
     </xsd:choice>
   </xsd:group>
--
2.0.1



More information about the Xcb mailing list