users@jaxb.java.net

Re: Schemagen issue with type in one namespace depending on base types in another namespace

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 26 Sep 2006 13:49:25 -0700

Incorporated. Thanks.

Kohsuke Kawaguchi wrote:
> Thanks! The change looks good. To incorporate this to the source code, I
> need to ask you to sign the SCA.
>
> Please take a look at [1], send it to us, and let me know so that I can
> proceed.
>
>
> [1] https://glassfish.dev.java.net/public/GovernancePolicy.html#SCA_Policy
>
> David White wrote:
>> I'm using the schemagen Ant task to generate a set of XSD files from a
>> set of JAXB 2.0 mapped packages/classes. I've properly annotated the
>> packages/classes with the necessary XmlSchema/XmlType/XmlElement
>> annotation and everything works great. I'm able to control the name of
>> the schema files produce with the Ant task properly. The one problem I
>> was having was that if I had a class/complexType in package/namespace B
>> that derived from a base class/complexType in package/namespace A, the
>> B.xsd file did *not* have a xs:import line generated to import the
>> definitions from namespace A. It would however properly generate the
>> xs:import if there was a containment relationship of a type in B to a
>> type in A.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com