OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML Schema question on inheritance




Is it possible to derive a complexType from another complexType
if they both use the <all> content group ?

Here is an example of what I want to do:

    <complexType name="parentType">
                <all>
                    <element name="x" type="string"/>
                    <element name="y" type="string"/>
                </all>
    </complexType>

    <complexType name="derivedType">
        <complexContent>
            <extension base="parentType">
                <all>
                    <element name="z" type="string"/>
                </all>
            </extension>
        </complexContent>
    </complexType>


Xerces 1.4.0  won't allow this, and I'm wondering if this is a bug, or
something the spec won't allow.

Thanks,
Jim Williams