XSD: interdependent tag attribute lists
Say, I have an XML document of the following structure:
Say, available options list is as follows:
<person gender="male" interests="cars"/>
<person gender="female" interests="shoe-shopping"/>
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!
No one able to help?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread