I have an XML
<order>
<details type = "Edit" header = "OK" value ="1">
<details type = "Edit" header = "NOK" value ="1">
<details type = "Edit" header = "Reject" value ="1">
<details type = "Edit" header = "Accept" value ="1">
</order>
Is it possible to do the conditional validation using XSD ?. Example.
*If
header = "OK" and value= "1"
header = "NOK" and value= "0"
then XML Valid
*If
header = "OK" and value= "1"
header = "NOK" and value= "1"
then XML Valid
*If
header = "OK" and value= "0"
header = "NOK" and value= "1"
then XML Valid
If
header = "OK" and value= "0"
header = "NOK" and value= "0"
then XML Invalid
Is this kind of validation is possible using XML Schema ?