Is it possible through
XML Schema Definitions to model e.g. that an attribute value can only be some specific value if another attribute has got another specific value? Say I have an XML document where these two nodes valid are present...
Code:
<task type="begin" action="establish" />
<task type="end" action="finalize" />
... then I will not allow...
Code:
<task type="begin" action="finalize" />
I am aware that I could do two seperate elements, but is there a way to model more constraints like this?
Hope you can help, Jacob.