Is it possible using XSD to restrinct node names to enumeration, and then based on this enumeration add another restrictions?
In example, I have this xml:
<a>
<b name="string" value="hello">
<b name="integer" value="123">
</a>
I want "b" nodes have name attribute from enumeration { "string", "integer" }. Then if it's "string" I want that "value" attribute to be type of xs:string, and if it's "integer" I want that "value" attribute to be type of xs:integer.