[XML Schema] Creating valid string values...

K

kelvSYC

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")?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top