[XML Schema] Creating valid string values...

Discussion in 'XML' started by kelvSYC, Nov 11, 2003.

  1. kelvSYC

    kelvSYC Guest

    Is it possible in XML Schema to have the values of one attribute be
    only the values of another attribute in some other element? Let me
    explain:

    Suppose you have something like
    <root>
    <a value="a value"/>
    <a value="another value"/>
    <a value="yet another value"/>
    <b ref="a value"/>
    </root>

    Is there a way to make it so that the only valid values of b's ref
    attribute be the value(s) of a's value attributes (in the case above,
    "a value", "another value", and "yet another value")?

    --
    I am only a mirage.
    kelvSYC, Nov 11, 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. Markus
    Replies:
    1
    Views:
    1,481
    Markus
    Nov 23, 2005
  2. Andy
    Replies:
    0
    Views:
    519
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,159
    Stanimir Stamenkov
    Apr 25, 2005
  4. Replies:
    3
    Views:
    2,767
  5. Generic Usenet Account

    q) XML Schema and valid XML documents

    Generic Usenet Account, Oct 30, 2009, in forum: XML
    Replies:
    3
    Views:
    1,083
    Peter Flynn
    Nov 2, 2009
Loading...

Share This Page