Hi..

       According to schema, there are some constraints for a restriction to
be valid.(given under Schema Component Constraint: Particle Restriction OK
(Elt:Elt -- NameAndTypeOK)).

 

When I give a schema which is not correct according to the above
constraints, libxml is not showing any error when it is parsing it.

The document attached to this mail. 

 

Where the restricted element is not correct. 

These constraints are handled in the following functions 

xmlSchemaCheckParticleRangeOK

xmlSchemaCheckRCaseNameAndTypeOK

xmlSchemaCheckRCaseNSCompat etc.

which are under the conditional compilation of the macro
"ENABLE_PARTICLE_RESTRICTION" which is commented.

 

Can you please help me in handling these constraints.

 

 

Thanks and regards,

Bharath.

 

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

Reply via email to