W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2007

xml validation error

From: nandanprasad <pola_nandana@emc.com>
Date: Thu, 12 Apr 2007 02:35:27 -0700 (PDT)
Message-ID: <9956050.post@talk.nabble.com>
To: xmlschema-dev@w3.org


while creating the below part of the xsd, I'm getting errors: 

<xs:element name="HealthState"> 
<xs:restriction base="cim:cimUnsignedShort"> 
<xs:restriction base="xs:unsignedShort"> 
<xs:enumeration value="0"/> 
<xs:enumeration value="5"/> 
<xs:enumeration value="10"/> 
<xs:enumeration value="15"/> 
<xs:enumeration value="20"/> 
<xs:enumeration value="25"/> 
<xs:enumeration value="30"/> 
<xs:restriction base="xs:unsignedShort"> 
<xs:minInclusive value="31"/> 

where, the definition for cim:cimUnsignedShort is as follows in another

<xs:complexType name="cimUnsignedShort"> 
<xs:extension base="xs:unsignedShort"> 
<xs:anyAttribute namespace="##any" processContents="lax"/> 

Im getting the following error while validating: 

Type '{anonymous}' is not a valid restriction of type
Error location: xs:schema / xs:element / xs:complexType / xs:simpleContent /
xs:restriction / @base 
derivation-ok-restriction.5.2: The simple type definition '{anonymous}' is
not a valid restriction of the base type definition's content type

Please help me understand the problem. 

thanks in advance. 

View this message in context: http://www.nabble.com/xml-validation-error-tf3564425.html#a9956050
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.
Received on Thursday, 12 April 2007 09:35:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:42 UTC