XSD: Conditional type definition

Ralph Kutschera <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
Dear list,

   I'm relatively new to XSD and would like to perform the following:


I have an XML-element like this:
<anElement type="ONE">
   <ONEelement />
</anElement>

<anElement type="TWO">
   <TWOelement />
</enElement>

So there is the "anElement" and depending on its type the subelements 
are different. Is there a way to declare this behaviour with XSD?

TIA,
   Ralph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.