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