xerces-c ignores the 'final' attribute and reports a 'derivation by restriction 
is forbidden' since the global attribute finalDefault is set to "#all"
------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: XERCESC-1716
                 URL: https://issues.apache.org/jira/browse/XERCESC-1716
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (Schema) (Xerces 1.5 or up only)
    Affects Versions: 2.7.0
            Reporter: Christian Will


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: [EMAIL PROTECTED]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to