Jump to content

List of constraint values for an attribute


juhel
 Share

Recommended Posts

Hi,I would like to write an XSD schema to constraint an attribute to get its value in a specific set of values.For example, I want this set of values in XML : dayAttribute = "monday, tuesday, wednesday"The list must have between 1 to 7 elements.Its values must be some of "monday", "tuesday", .... "sunday"Each value can be used only one time.How can I describe this with an XSD schema?Thank you for your reply,Philippe

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...