Hi,

For the following schema:

<xs:element name="Element">

                                     <xs:simpleType>

                                               <xs:restriction
base="xs:string">

                                                        <xs:enumeration
value="ENUM_VAL_1"/>

                                                        <xs:length
value="0"/>

                                                        <xs:enumeration
value="ENUM_VAL_2"/>

                                               </xs:restriction>

                                     </xs:simpleType>

         </xs:element>

Libxml parses this properly, and no error is generated.

 

There are two types of restrictions (enum and length)

My doubt is when we a get a value for the element, should it abide by both
the restrictions or any one of it is ok?

Thanks!!

 

Regards

Ashwin

 

 

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to