Is it possible to validate attribute values against element names in an XmlSchema.
For e.g. For the XML fragment below, I want to ensure that the value in the ‘thisShouldBeAnElementName’ attribute should be an element name. So, valid values would be ‘a’,’b’ or ‘c’.
<root>
<a/>
<b/>
<c thisShouldBeAnElementName='a'/>
</root>
Thanks.
In XSD 1.1 you can write an assertion:
XSD 1.1 is currently implemented in Xerces and Saxon.