Thanks a lot for the information. You are right; it
has to do with versioning. Basically, the previous
beta version of our schema was a single integrated
schema but in the current release, the previous schema
was broken down to two independent schemas. In order
to avoid a major recoding of the existing systems
(based on the previous single schema), I just wanted
to confirm if there was anyway I could abstract out
the root elements from both the schemas. Our schema is
anyway an ongoing effort to assess if there is
actually a need to break it down.
Thanks a lot once again for the information,
Rgds,
Bhaskar
--- Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
wrote:
> > 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
>
>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net