W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Complex Type extension

From: Kevin Burges <xmldude@burieddreams.com>
Date: Tue, 30 Apr 2002 13:45:24 +0100
Message-ID: <1551010483.20020430134524@burieddreams.com>
To: xmlschema-dev@w3.org

I've got a schema which XMLSpy used to say is valid but in 4.3 says is
invalid (well, it validated in the Schema view but not in the other
views). I think XSV validates it, but I don't understand it's output
half the time so who knows.

I have a ComplexType which contains an Attribute called Logic which is
required. I need to re-use this ComplexType elsewhere but make the
Logic attribute optional.

Here's my code:

<xs:element name="CheckGroup">
                        <xs:extension base="CheckGroupType">
                                <xs:attribute name="Logic" type="xs:string" use="optional"/>

Is this in fact invalid, and is there another way to acheive this
other than just making a new ComplexType?

May the flares be with you,
 Kevin                    xmldude@burieddreams.com

++++++++++++ Cool music - http://marshanrock.com
Received on Tuesday, 30 April 2002 08:46:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC