Enumeration restriction in Simple Type

Hi,

Is there any way to add a restriction list of values for a property of a custom type?

I have tried to define a xs:restriction with an enumeration but when i create a document with cmis services; this restriction is not applicated.

<xs:element name=“origen” type=“xs:string”> <xs:simpleType>

    &lt;xs:restriction base="xs:string"&gt;
      &lt;xs:enumeration value="PDSR"/&gt;
    &lt;/xs:restriction&gt;

</xs:simpleType> </xs:element>

Thank you very much

0 votes

0 answers

1656 views

ANSWER