Hi !
Can somebody tell me if it's possible to overwrite an element definition when I derive an complexType (with extension, or something like this ) ?
The base complexType looks like:
<xs:complexType name="statechangetype">
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="State" type="statetype"/>
<xs:element name="Condition" type="conditiontype" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="When" type="whentype" minOccurs="0"/> <xs:element name="Restriction" type="restrictiontype" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType>
and in the derived complexType, I want to overwrite the element from the base complexType "State" like this way:
<xs:complexType name="bubblestatechangetype">
<xsd:extension base="statechangetype">
<xs:sequence>
<xs:element name="State" type="bubblevaluetype"/> </xs:sequence> </xsd:extension> </xs:complexType>
Thanks.
Best regards, Istvan
Can somebody tell me if it's possible to overwrite an element definition when I derive an complexType (with extension, or something like this ) ?
The base complexType looks like:
<xs:complexType name="statechangetype">
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="State" type="statetype"/>
<xs:element name="Condition" type="conditiontype" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="When" type="whentype" minOccurs="0"/> <xs:element name="Restriction" type="restrictiontype" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType>
and in the derived complexType, I want to overwrite the element from the base complexType "State" like this way:
<xs:complexType name="bubblestatechangetype">
<xsd:extension base="statechangetype">
<xs:sequence>
<xs:element name="State" type="bubblevaluetype"/> </xs:sequence> </xsd:extension> </xs:complexType>
Thanks.
Best regards, Istvan