<group ref="rng:regarrayGroup" />\r
</choice>\r
<attribute name="name" type="NMTOKEN" use="required" />\r
- <attribute name="bare" type="boolean" use="optional" />\r
+ <attribute name="bare" type="rng:Boolean" use="optional" />\r
<attribute name="prefix" type="NMTOKENS" use="optional" />\r
<attribute name="width" type="rng:DomainWidth" use="optional" />\r
<attribute name="size" type="rng:Hexadecimal" use="optional" />\r
<group ref="rng:topGroup" />\r
</choice>\r
<attribute name="name" type="NMTOKEN" use="required" />\r
- <attribute name="inline" type="boolean" use="optional" />\r
- <attribute name="bare" type="boolean" use="optional" />\r
+ <attribute name="inline" type="rng:Boolean" use="optional" />\r
+ <attribute name="bare" type="rng:Boolean" use="optional" />\r
<attribute name="prefix" type="NMTOKENS" use="optional" />\r
</complexType>\r
\r
<group ref="rng:topGroup" />\r
</choice>\r
<attribute name="name" type="NMTOKEN" use="required" />\r
- <attribute name="inline" type="boolean" use="optional" />\r
- <attribute name="bare" type="boolean" use="optional" />\r
+ <attribute name="inline" type="rng:Boolean" use="optional" />\r
+ <attribute name="bare" type="rng:Boolean" use="optional" />\r
<attribute name="prefix" type="NMTOKENS" use="optional" />\r
</complexType>\r
\r
<union memberTypes="rng:Hexadecimal nonNegativeInteger" />\r
</simpleType>\r
\r
+ <simpleType name="Boolean">\r
+ <restriction base="string">\r
+ <enumeration value="true" />\r
+ <enumeration value="1" />\r
+ <enumeration value="yes" />\r
+ <enumeration value="false" />\r
+ <enumeration value="0" />\r
+ <enumeration value="no" />\r
+ </restriction>\r
+ </simpleType>\r
+\r
<simpleType name="Access">\r
<annotation>\r
<documentation>Access</documentation>\r
static int getboolattrib (struct rnndb *db, char *file, int line, xmlAttr *attr) {
char *c = getattrib(db, file, line, attr);
- if (!strcmp(c, "yes") || !strcmp(c, "1"))
+ if (!strcmp(c, "yes") || !strcmp(c, "1") || !strcmp(c, "true"))
return 1;
- if (!strcmp(c, "no") || !strcmp(c, "0"))
+ if (!strcmp(c, "no") || !strcmp(c, "0") || !strcmp(c, "false"))
return 0;
rnn_err(db, "%s:%d: invalid boolean value \"%s\" in attribute \"%s\"\n", file, line, c, attr->name);
return 0;