I would like to set up an XSD such that it enforces something like a foreign key relationship. Here's an example:
<MappingElement Reference="MySourceElementName"/>
<SourceElement Name="MySourceElementName"/>
I would like to specify in the XSD that for any value assigned to the attribute "Reference" must also be a value of a Name attribute in a SourceElement tag. I know about enumerable restrictions, but the range of values for Name are open ended -- I simply need integrity between my Reference attributes and my Name attributes. Is there a way to express this with XSD?