Hi all,
I would like to know if this schema is correct..
.....
.....
<xs:simpleType name="stringtype">
<xs:restriction base="xs:string"/>
</xs:simpleType>
....
....
...
<xs:element name="opsmenu">
....
.....
....
<xs:attribute name="debug" use="optional">
<xs:simpleType>
<xs:restriction base="stringtype">
<xs:pattern value="on|off"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
.....
.....
<opsmenu debug="on"> -->> this is my root element in the xml
debug attribute is either on or off and it is optional...
Is the above declarations correct?
I'm getting this error Found <simpleType> illegally combined with
<complexType>.
Im not sure if the declaration is right or there is a bug in the
parser.
Appreciate any inputs