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

RE: derived types and Casotr

From: Jeff Lowery <jlowery@scenicsoft.com>
Date: Thu, 11 Jul 2002 10:36:09 -0700
Message-ID: <D60D8F448216D611A21A00508B62B5BC5C82@exchange-us.scenicsoft.com>
To: "'Bowden Wise'" <wiseb@acm.org>, xmlschema-dev@w3.org

 

The other requirement I have is that I want to be able to use Castor
to generate java code... when I tried using a base type with a substitution
group, Castor did not generate any classes for any of the derived types 
 

Without a snippet, it's hard to guess at what the problem is. I've tried the
following, and Castor seems to generate all the classes just fine:
 
<xs:element name="Actor" abstract="true">

     <xs:complexType>

        <xs:complexContent>

            <xs:extension base="ActorType"/>

        </xs:complexContent>

     </xs:complexType>

</xs:element>

<xs:element name="PlateSetter" type="ActorType" substitutionGroup="Actor"/>

<xs:element name="Proofer" type="ActorType" substitutionGroup="Actor"/>

<xs:complexType name="ActorType">

     <xs:attribute name="id" type="xs:ID"/>

</xs:complexType> 

 
Received on Thursday, 11 July 2002 13:36:47 UTC

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