users@jaxb.java.net

Re: Java packages with relation to Nested schemas.

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 28 Oct 2003 08:16:04 -0800

> Impossible to distinguish? How so? I thought that was why each had
> their own namespace and prefix? IE:

The way the XML Schema spec sees the world is that the .xsd files you
guys are writing is just a serialization format of an object model
called "abstract schema components".

If you look at the definitions of those "abstract schema components"
carefully, you'll notice that there's nothing corresponds to
what you write as <xsd:schema>. Hence we cannot distinguish them.

>
> <main1:tag>
> <common:notation/>
> </main1:tag>
>
> I believe the comment could be correct as far as them having the same
> namespace, but... if I specify multiple xmlns in my schema, couldn't
> the common libraries be in a separate package from the main1 and main2
> libraries?

But the question was when all three were in the same namespace.

If you put three in different namespaces, sure, you can distinguish
those and thus you can assign different packages to them.


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