Tell me, is it possible in XSD Scheme 1.0:
Control the presence of one or another attribute in the element, and must be either one or the other (simultaneous presence is excluded)
<el value_1="11" value_2="22" />- Error, both elements are present.<el value_1="11" />- Check passes<el value_2="22" />- Check passes
Control the presence of an attribute or, if not, the presence of a child element
<el value="11"/>- check passes<el><value>11</value></el>- the check passes<el value="11"><value>11</value>- Error, both attribute and nested element are present
Control the presence of an attribute or element content.
<el value="11" />- check passes<el>11</el>- check passes<el value="11">11</el>- error, both attribute and nested data are present
I read that in XSD Schema 1.1 such can be controlled by creating my own control rules with xs: assert, but alas, the scheme is used for version 1.0