users@jaxb.java.net

Re: JAXB generating binding involving substitutionGroup head

From: anima <anima_at_worldonline.de>
Date: Sat, 28 Jul 2007 10:29:59 -0700 (PDT)

Hi,
I have a similar question. I have:

<xs:element name="car" type="carType" substitutionGroup="vehicle" />

<xs:complexType name="carType">
        <xs:complexContent>
                <xs:extension base="vehicleType">
                        <xs:sequence>
                                <xs:element ref="X" />
                        </xs:sequence>
                </xs:extension>
        </xs:complexContent>
</xs:complexType>

<xs:element name="person">
        <xs:complexType>
                <xs:sequence>
                        <xs:element ref="car" />
                </xs:sequence>
        </xs:complexType>
</xs:element>

After compilation person has a car of carType. Why isn't car of type
JAXBElement<carType>?
(or will be Car, if I make a customization like:
<jaxb:bindings node="//xs:element[@name='car']">
        <jaxb:class />
</jaxb:bindings>)
-- 
View this message in context: http://www.nabble.com/JAXB-generating-binding-involving-substitutionGroup-head-tf3952908.html#a11844798
Sent from the java.net - jaxb users mailing list archive at Nabble.com.