-
XML XSD Problem
Hello,
is there a possibility to reference to a specified type dependent on the value of an element attribute.
For example:
HTML Code:
<xs:complexType name="MConfiguration">
<!-- MConfiguration definition -->
</xs:complexType>
<xs:element constraint="//CONFIGURATION[@id=MC]" name="CONFIGURATION" type="MConfiguration">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element ref="PARAMETER"/>
</xs:sequence>
<xs:attributeGroup ref="ConfigAttribGroup"/>
</xs:complexType>
</xs:element>
In this example I want to address to the type of the CONFIGURATION-Tag only if the value of the attribute id is MC....
Thanks