I do not think this is possible, but I thought I would throw it there. Given this XML:
<people count="3">
<person>Bill</person>
<person>Joe</person>
<person>Susan</person>
</people>
Is it possible in XSD to force the value of the @count attribute to be the correct counter for certain elements (in this case, the person element)? The above example will obviously be correct, and the example below will not check:
<people count="5">
<person>Bill</person>
<person>Joe</person>
<person>Susan</person>
</people>
heath source
share