Jump to content

Mixed Content and defining datatype


Guest Kosh

Recommended Posts

Is it possible to define a datatype for the character text between the subelements of an element defined as mixed-content? In the example below I want to define that "Your order of" is of datatype "something".http://www.w3.org/TR/xmlschema-0/#mixedContentI've found this, does it mean that I cannot derive datatypes either, only "complex" is allowed?"W3C XML Schema specification defines many different built-in datatypes. These datatypes can be used to constrain the values of attributes or elements which contain only simple content. These datatypes are not available for constraining data in mixed content. "

Link to post
Share on other sites
  • 3 weeks later...

Just a thought -What happens if you don't define a constraint for the element within the schema?A constraint is exactly that - it is designed to ensure that data is of a fixed type.If there is no constraint does that mean that the data can be any type?Let me know if that helps (I'm not as advanced as I may look).Dooberry.

There is no spoon, it is you that bends
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.

Guest
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.

Loading...
×
×
  • Create New...