You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2005/12/05 21:14:25 UTC

RE: Schema compilation to some specific package

I think you are getting a little bit confused here, let me explain.

XmlBeans does *not* compile Java classes to schema.system package (you
give TypeSystemHolder as example, but that is a special case, the only
one class that gets generated there and it doesn't depend on your
Schema). They are generated (and compiled) in a package name that is
derived from the targetNamespace of your Schema using a simple
algorithm, or the package "noNamespace" if there is no targetNamespace.
Use the "src" option to scomp to see how Java types are generated. If
you want a different package than the default, you should use .xsdconfig
configuration files.

The "typesystemname" option should really not be necessary in 99.9% of
cases, so don't bother with it for the time being.

Hope this helps,
Radu

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Ben
Sent: Wednesday, November 30, 2005 6:53 AM
To: user@xmlbeans.apache.org
Subject: Schema compilation to some specific package


Hi,

I am trying to generate sources for a schema into a specific package. My
problem is that XMLBeans always compile schema classes/src to
schema.system package. (TypeSystemHolder classe for instance)

The provided option typesystemname="mynamespace" only append the option
value to then original package path -> schema.system.mynamespace (tested
in version 1.04 and 2.1.0).

Is there a way to generate everything in a specific package?

Cheers,

Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: Schema compilation to some specific package

Posted by Ben <ti...@free.fr>.
Hi Radu,

I think you didnot get my problem at all.
Let me precise it.

I already have a .xsdconfig that is generating all
the beans to my custom package.

The problem is that "schema compiled classes" such as the TypeSystemHolder
are not generated to this package but by default to schema.system.

(All the beans generated point to this classes)

My question was targetting those specific classes.

The solution I found was to modify xmlbeans sources so that only the
"typesystemname" ant argument was taken into account (I removed schema.system).

If you got another trick to make it, I would be please to know it.

Cheers,

Ben




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org