[Xcb] xproto test failed

Julien Danjou julien at danjou.info
Mon Feb 16 02:41:35 PST 2009


Hi,

Current git version of xcb-proto fails to pass xmllint:

./xcb.xsd:58: element extension: Schemas parser error : Element
'{http://www.w3.org/2001/XMLSchema}complexType': The content is not
valid. Expected is (annotation?, (simpleContent | complexContent |
((group | all | choice | sequence)?, ((attribute | attributeGroup)*,
anyAttribute?)))).

The culprit is commit 12a2b2bf7492d292c9f8e2b2abb3be1dc3e98ab1:
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -53,7 +53,19 @@ authorization from the authors.
   </xsd:complexType>
 
   <!-- field replaces FIELD, PARAM, and REPLY. -->
-  <xsd:element name="field" type="var" />
+  <xsd:element name="field">
+    <xsd:complexType>
+      <xsd:extension base="var">
+       <!-- Used for fields which are bitmasks. Refers to the type which
+            describes the mask. -->
+       <xsd:attribute name="mask" type="xsd:string" use="optional" />
+
+       <!-- Used for fields which are enums.  Refers to the type which
+            describes the enumeration. -->
+       <xsd:attribute name="enum" type="xsd:string" use="optional" />
+      </xsd:extension>
+    </xsd:complexType>
+  </xsd:element>
 
   <!-- list replaces ARRAYFIELD, LISTPARAM, and ARRAYREPLY.  The name and type
        are specified as attributes.  The content is an expression giving the

I'm a XML newbie so I can't fix it myself.
Help?

Cheers,
-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Ferns will rule the world.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20090216/a49c1ad1/attachment.pgp 


More information about the Xcb mailing list