Hello,
I'm looking for a variant of choosing an attribute for an element, that can be directly set or be referenced.
this is what I have in Mind:
<root>
<element>
<attribute ref="shortname" />
</element>
<element>
<attribute name="shortname" isEditable="true" anotherattrib="0815" />
</element>
</root>
Since this wouldn't be problem without an xml scheme, the definition of this attribute is quite hard if attribute "name" of element attribute is required.
the scheme could look like this
<xs:element name="attribute">
<xs:complexType>
<xs:attribute name="ref" use="required" />
<xs:attribute name="name" use="required" />
</xs:complexType>
</xs:element>
Is there any possibility to make a choice ( similar to a xs:choice for elements ) between attributes? Like if there is an attribute from element attribute named ref, no other attributes are allowed. if not, the attribute "name" must be set...
This problem sounds pure virtual and academic but I would be happy if there might be a solution or if I'm completely wrong with what I have in mind :)
Thank you in advance for any help!
Dave