users@jaxb.java.net

Re: how to refer to a common schema without duplicating entries found in the common namespace

From: Jean-Marie Condom <jmc_at_meteorage.com>
Date: Mon, 07 Feb 2005 10:26:14 +0100

Hello

Kohsuke Kawaguchi wrote:

>
> This is an XML Schema issue, not really a JAXB issue. To import a
> schema, you have to specify the namespace.
>
> Change this
>
>> <xsd:import schemaLocation="common.xsd" />
>
>
> ... to ...
>
> <xsd:import schemaLocation="common.xsd"
> namespace="meteorage/jobs/params/common" />

thanks ; i had tried this instruction also but the problem is
the duplication of common classes under
meteorage/jobs/params/configuration when compiling
configuration_test.xsd (whose namespace is
meteorage/jobs/params/configuration)
and that imports common.xsd

those classes are already under meteorage/jobs/params/commons
after having compiled common.xsd (whose namespace is
meteorage/jobs/params/common)

is there a way with jaxb to prevent the generation of types
which are imported in a schema or at least to redirect the generation
of those types in a common directory

thanks in advance

Jean-Marie

-- 
Jean-Marie Condom
Software development team
Sté Météorage
2 av Angot
64053 PAU
France