two types for one element

Discussion in 'XML' started by heras1985, Mar 7, 2008.

  1. heras1985

    heras1985

    Joined:
    Mar 7, 2008
    Messages:
    1
    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
    heras1985, Mar 7, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.frontiernet.net
    Replies:
    6
    Views:
    1,102
    news.frontiernet.net
    Apr 16, 2004
  2. Y.S.
    Replies:
    3
    Views:
    984
    strajan
    Sep 17, 2003
  3. Adam Retter
    Replies:
    2
    Views:
    377
    C. M. Sperberg-McQueen
    Jun 10, 2005
  4. HANM
    Replies:
    2
    Views:
    690
    Joseph Kesselman
    Jan 29, 2008
  5. Ludovic Kuty
    Replies:
    11
    Views:
    1,237
    Ludovic Kuty
    Nov 11, 2012
Loading...

Share This Page