summaryrefslogtreecommitdiff
path: root/src/xcb.xsd
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2006-03-04 14:07:04 -0800
committerJosh Triplett <josh@freedesktop.org>2006-03-04 14:07:04 -0800
commit3084d8b32e541c7a4f8e198be2566bc6d6f4aa98 (patch)
tree2250a538643fa2b78c5bc99b1304234148382e39 /src/xcb.xsd
parentec8315d965d3e2653f2e7d70689d229091846725 (diff)
In XML Schema, attributes default to optional unless explicitly marked use="required"; add use="required" to all required attributes. Add fake error number to error name="Generic" in glx.xml, since error is now a required attribute.
Diffstat (limited to 'src/xcb.xsd')
-rw-r--r--src/xcb.xsd48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/xcb.xsd b/src/xcb.xsd
index 23dc352..8cac620 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -30,7 +30,7 @@ authorization from the authors.
<xsd:element name="xcb">
<xsd:complexType>
<xsd:group ref="macro" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="header" type="xsd:string" />
+ <xsd:attribute name="header" type="xsd:string" use="required" />
<xsd:attribute name="extension-xname" type="xsd:string" use="optional" />
<xsd:attribute name="extension-name" type="xsd:string" use="optional" />
</xsd:complexType>
@@ -39,14 +39,14 @@ authorization from the authors.
<!-- Padding -->
<xsd:element name="pad">
<xsd:complexType>
- <xsd:attribute name="bytes" type="xsd:integer" />
+ <xsd:attribute name="bytes" type="xsd:integer" use="required" />
</xsd:complexType>
</xsd:element>
<!-- Type for fields or parameters with attributes "name" and "type" -->
<xsd:complexType name="var">
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ <xsd:attribute name="type" type="xsd:string" use="required" />
</xsd:complexType>
<!-- field replaces FIELD, PARAM, and REPLY. -->
@@ -77,7 +77,7 @@ authorization from the authors.
<xsd:group ref="expression" />
<xsd:group ref="expression" />
</xsd:sequence>
- <xsd:attribute name="op">
+ <xsd:attribute name="op" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="\+|-|\*|/|&amp;|&lt;&lt;" />
@@ -106,9 +106,9 @@ authorization from the authors.
<!-- BITMASK/LISTofVALUE parameter pairs. -->
<xsd:element name="valueparam">
<xsd:complexType>
- <xsd:attribute name="value-mask-type" type="xsd:string" />
- <xsd:attribute name="value-mask-name" type="xsd:string" />
- <xsd:attribute name="value-list-name" type="xsd:string" />
+ <xsd:attribute name="value-mask-type" type="xsd:string" use="required" />
+ <xsd:attribute name="value-mask-name" type="xsd:string" use="required" />
+ <xsd:attribute name="value-list-name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
@@ -123,21 +123,21 @@ authorization from the authors.
<!-- Type for a structure -->
<xsd:complexType name="struct">
<xsd:group ref="fields" minOccurs="1" maxOccurs="unbounded" />
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
<!-- Type for a packet structure -->
<xsd:complexType name="packet-struct">
<xsd:group ref="fields" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="number" type="xsd:integer" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ <xsd:attribute name="number" type="xsd:integer" use="required" />
</xsd:complexType>
<!-- Type for a packet structure copy -->
<xsd:complexType name="packet-struct-copy">
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="number" type="xsd:integer" />
- <xsd:attribute name="ref" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ <xsd:attribute name="number" type="xsd:integer" use="required" />
+ <xsd:attribute name="ref" type="xsd:string" use="required" />
</xsd:complexType>
<!-- Type for hex integers -->
@@ -172,16 +172,18 @@ authorization from the authors.
</xsd:complexType>
</xsd:element>
</xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="opcode" type="xsd:integer" />
- <xsd:attribute name="combine-adjacent" type="xsd:boolean" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ <xsd:attribute name="opcode" type="xsd:integer" use="required" />
+ <xsd:attribute name="combine-adjacent" type="xsd:boolean"
+ use="optional"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="event">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="packet-struct">
- <xsd:attribute name="no-sequence-number" type="xsd:boolean" />
+ <xsd:attribute name="no-sequence-number" type="xsd:boolean"
+ use="optional" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
@@ -193,7 +195,7 @@ authorization from the authors.
<xsd:element name="union" type="struct" />
<xsd:element name="xidtype">
<xsd:complexType>
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="enum">
@@ -202,17 +204,17 @@ authorization from the authors.
<xsd:element name="item">
<xsd:complexType>
<xsd:group ref="expression" minOccurs="0" maxOccurs="1" />
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="typedef">
<xsd:complexType>
- <xsd:attribute name="oldname" type="xsd:string" />
- <xsd:attribute name="newname" type="xsd:string" />
+ <xsd:attribute name="oldname" type="xsd:string" use="required" />
+ <xsd:attribute name="newname" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
<!-- The import element allows a protocol description to reference the