distinct multiple choice in xml schema

Discussion in 'XML' started by zonsh, Nov 4, 2007.

  1. zonsh

    zonsh Guest

    Hi there,

    I am looking everywhere to find a solution where I can add a type in
    xml schema that will restrict the xml author to select multiple
    options from a list without repeating 1 option more than once.

    Do you have a solution?

    Thanks a lot,
    David
     
    zonsh, Nov 4, 2007
    #1
    1. Advertisements

  2. zonsh

    Pavel Lepin Guest

    zonsh <> wrote in
    <>:
    > I am looking everywhere to find a solution where I can add
    > a type in xml schema that will restrict the xml author to
    > select multiple options from a list without repeating 1
    > option more than once.


    <xs:complexType name="foobarType">
    <xs:sequence>
    <xs:element name="foo" minOccurs="0" maxOccurs="1"/>
    <xs:element name="bar" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
    </xs:complexType>

    --
    "I can't help but wonder if you... don't know a hell of a
    lot more about practically every subject than Solomon ever
    did."
     
    Pavel Lepin, Nov 5, 2007
    #2
    1. Advertisements

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. Markus
    Replies:
    1
    Views:
    1,920
    Markus
    Nov 23, 2005
  2. GB
    Replies:
    0
    Views:
    604
  3. Fred Smith
    Replies:
    1
    Views:
    1,195
    Martin Honnen
    Feb 5, 2004
  4. Hari Om
    Replies:
    1
    Views:
    588
    Martin SChukrazy
    Mar 2, 2004
  5. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,565
    Stanimir Stamenkov
    Apr 25, 2005
  6. Replies:
    3
    Views:
    4,545
  7. Hicham Mouline
    Replies:
    1
    Views:
    527
    Kai-Uwe Bux
    Apr 11, 2010
  8. Replies:
    5
    Views:
    1,671
    Brian McCauley
    Nov 29, 2006
Loading...