I am using XML for a geolocation project. This uses attributes to define the location of items. A simple 1-dimensional example for the range 0-9 would be:
<Range Start="0" Size="10">Some item</Range>
Some items have children. The children must always fit within the range of the parent. In the XML below the child element has the Start
attribute set to 12. This is outside of the logical range defined by the parent element:
<Range Start="0" Size="10">
<Range Start="12" Size="1">Out of range 0-9</Range>
</Range>
Can an XSD schema detect this scenario, or is it impossible to validate against parent attribute values?