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. Advertising

  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. 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. Patrick Delifer

    Re: Bad Choices

    Patrick Delifer, Apr 5, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    387
    Patrick Delifer
    Apr 5, 2004
  2. Steve Caliendo

    Frames menu choices always not enabled

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

    restricting user choices in a form

    Jean Lutrin, Oct 22, 2003, in forum: Java
    Replies:
    1
    Views:
    374
  5. Joe
    Replies:
    71
    Views:
    1,446
    JEDIDIAH
    Jun 24, 2004
Loading...

Share This Page