schema: Add attribute 'name' to <fd>
authorDaniel Martin <consume.noise@gmail.com>
Fri, 22 Nov 2013 22:26:52 +0000 (23:26 +0100)
committerDaniel Martin <consume.noise@gmail.com>
Sun, 20 Jul 2014 19:21:27 +0000 (21:21 +0200)
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@gmail.com>
src/xcb.xsd

index 85e3dde..78da84f 100644 (file)
@@ -91,7 +91,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