two types for one element

Joined
Mar 7, 2008
Messages
1
Reaction score
0
Hello, I have the next XML-Schema:

<xs:element name="classifying-space">
<xs:complexType>
<xs:choice>
<xs:group ref="SG"></xs:group>
<xs:group ref="ASG"></xs:group>
</xs:choice>
</xs:complexType>
</xs:element>

<xs:group name="ASG">
<xs:choice>
<xs:element ref="k-z"></xs:element>
<xs:element ref="k-z2"></xs:element>
</xs:choice>
</xs:group>

<xs:group name="SS">
<xs:choice>
<xs:element ref="sphere"></xs:element>
<xs:element ref="moore-space" ></xs:element>
<xs:element ref="sphere-wedge"></xs:element>
<xs:element ref="delta"></xs:element>
<xs:element ref="proj-space"></xs:element>
<xs:element ref="crts-prdc"></xs:element>
<xs:element ref="suspension"></xs:element>
</xs:choice>
</xs:group>

I want include the element classifying-space in the group SS if the choice in the element classifying space is SG, or include in the group ASG if the choice is ASG.
is it possible?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top