Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.0
-
None
Description
Xerces-C ignores the 'final' attribute for the type 'foo' and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all".
sample:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" finalDefault="#all">
<xs:complexType name="foo" final="">
<xs:sequence>
<xs:element name="myEle1" type="xs:string" minOccurs="0"/>
<xs:element name="myEle2" type="xs:integer" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="fooType">
<xs:complexContent>
<xs:restriction base="foo">
<xs:sequence>
<xs:element name="myEle1" type="xs:string"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>
Regards,
Christian Will
mail: christian.will@gmail.com