Say, I have an XML document of the following structure:
<person gender="male" interests="cars"/>
<person gender="female" interests="shoe-shopping"/>
Say, available options list is as follows:
With the following correspondence between attribute values:
male -> cars, women
female -> shoe-shopping, men
Is there any way to set the aforementioned attribute option's interdependence in the context of XSD schema? Which means, if composing an XML document I have selected a 'male' value for the 'gender' attribute - the 'interests' attribute available values are reduced to the ones, corresponding to the 'male' value according to the initial idea...
Thanks in advance!