I\'m going to guess that this functionality doesn\'t exist, but I thought I\'d give it one last shot.
I\'ve got an XML structure I\'m trying to validate (I have no c
You are right, this functionality doesn't exist.
It can be done in Schematron, but I don't know if it fits your project.
The name for the feature you are describing is "co-occurrence constraints", and they aren't supported in XSD 1.0.
You can do this in XSD 1.1 using the "conditional type assignment" syntax, where the type of an element depends on the values of its attributes; you can also do it using assertions. XSD 1.1 is now a final W3C Recommendation and is implemented in Xerces and Saxon.