Choices of attributes

Discussion in 'XML' started by Tony, Nov 11, 2004.

  1. Tony

    Tony Guest

    How do I to define a tag wit two attributes that
    are mutually exclusive?

    So I want the tag to look like this:
    <COM:description choice1="blah">
    or
    <COM:description choice2="blahblah">

    BUT NOT
    <COM:description choice1="blah" choice2="blahblah">
     
    Tony, Nov 11, 2004
    #1
    1. Advertisements

  2. (Tony) writes:

    > How do I to define a tag wit two attributes that
    > are mutually exclusive?
    >
    > So I want the tag to look like this:
    > <COM:description choice1="blah">
    > or
    > <COM:description choice2="blahblah">
    >
    > BUT NOT
    > <COM:description choice1="blah" choice2="blahblah">


    What language do you want to use to make the definition?
    XML DTD and W3C XML schema can not express that constraint.
    You can express it in Relax NG or schematron for example.

    David
     
    David Carlisle, Nov 11, 2004
    #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. Steve Caliendo

    Frames menu choices always not enabled

    Steve Caliendo, Jun 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    371
    Steve Caliendo
    Jun 18, 2004
  2. Marc Rochkind
    Replies:
    17
    Views:
    6,619
    Dale King
    Jul 14, 2003
  3. Jean Lutrin

    restricting user choices in a form

    Jean Lutrin, Oct 22, 2003, in forum: Java
    Replies:
    1
    Views:
    484
  4. Joe
    Replies:
    71
    Views:
    1,919
    JEDIDIAH
    Jun 24, 2004
  5. Replies:
    6
    Views:
    516
    Scott Ellsworth
    Oct 3, 2005
  6. dug

    Choices: scipy, matplot ...

    dug, Feb 19, 2007, in forum: Python
    Replies:
    1
    Views:
    390
    sturlamolden
    Feb 19, 2007
  7. distributed computing choices

    , Sep 27, 2005, in forum: C Programming
    Replies:
    6
    Views:
    369
    Scott Ellsworth
    Oct 3, 2005
  8. Replies:
    6
    Views:
    401
    Scott Ellsworth
    Oct 3, 2005
Loading...