Jump to content

List of constraint values for an attribute

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...