2
votes

I am getting this error when validating enumeration element in xsd.

<xsd:restriction base="xsd:unsignedInt">
               <enumeration value="4">
       </enumeration>
        </xsd:restriction>

Please help me regarding this.

 s4s-elt-schema-ns: The namespace of element 'enumeration' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
2

2 Answers

2
votes

Add the namespace prefix xsd: to enumeration:

<xsd:restriction base="xsd:unsignedInt">
  <xsd:enumeration value="4"/>
</xsd:restriction>
2
votes

The enumeration element need to be bound the XML Schema. You need to add the prefix, namely xsd, like so :

<xsd:enumeration>