[Xcb] [proto 4/6] schema: Add attribute 'name' to <fd>
Daniel Martin
consume.noise at gmail.com
Fri Nov 22 14:26:52 PST 2013
Do not allow any other attribute and make sure the attribute 'name' is
set in an fd element by adding and declaring it as required in the
schema.
Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
src/xcb.xsd | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/xcb.xsd b/src/xcb.xsd
index be7d81a..e566dbd 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -90,7 +90,11 @@ authorization from the authors.
<xsd:element name="field" type="var" />
<!-- fd passing parameter -->
- <xsd:element name="fd" />
+ <xsd:element name="fd">
+ <xsd:complexType>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </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
--
1.8.4.2
More information about the Xcb
mailing list