choice between two attributes (schema)

Discussion in 'XML' started by Hauke Fuhrmann, Oct 25, 2003.

  1. Hello,

    i have to write a schema definition, where only the two elements are
    allowed as follows:

    <name firstname="Martin" surname="Mustermann"/>
    <name institution="Mustermann inc."/>

    how do I express, that the element name needs exactly the attribute
    "institution" or the two attributes "firstname" and "surname"?

    A choice construct does not work for attributes, so how do I do it?


    Gruß,
    Hauke
    Hauke Fuhrmann, Oct 25, 2003
    #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. Mickey Segal
    Replies:
    0
    Views:
    857
    Mickey Segal
    Feb 2, 2004
  2. Markus
    Replies:
    1
    Views:
    1,497
    Markus
    Nov 23, 2005
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,173
    Stanimir Stamenkov
    Apr 25, 2005
  4. Replies:
    3
    Views:
    2,797
  5. miles.jg
    Replies:
    16
    Views:
    858
    Alf P. Steinbach
    Nov 14, 2007
Loading...

Share This Page