> I am still not clear as to how to handle compilation
> of multiple schemas. Here is my scenario:
>
> I have two schemas with different target namespaces
> and no linkages between the two. So basically these
> are two absolutely independent schemas. But each
> schema has a few elements that have same names (these
> elements form the root of the schema).
>
> My question is can I compile these two schemas with
> two different target namespaces into a single package
> without making any modifications to the schemas
> themselves (basically through some external bindings).
> This should ideally give me common classes for the
> common elements in both the schemas.
Since you said those two elements only have the same local name (but
different target namespaces), you can't make JAXB treat them as one
element. You can certainly compile both schemas into the same package,
module some name conflict resolution, but you'll get two representations
for those two elements.
I'm interested in knowing more about why you have some isomorphic
declarations in different namespaces. Is that because of the versioning
or something?
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net