Have you set the nspackages in castorbuilder.properties?
# XML namespace mapping to Java packages
#
#org.exolab.castor.builder.nspackages=\
http://www.xyz.com/schemas/project=com.xyz.schemas.project,\
http://www.xyz.com/schemas/person=com.xyz.schemas.person
--Erik
> -----Original Message-----
> From: John Hughes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 18, 2003 2:37 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] schema hierachy and insertion of
> import statements
>
>
> I have an environment where I have wish to build
> classes out of a hierarchy of XML schemas. However I
> cant seem to get Castor to create Java classes with
> import statements for lower level packages. I've tried
> various combinations of the use of <import> and
> <include> in the schema file to no avail.
>
> Simplified this is what I have:
>
> schema1 imports schema2. Schema 1 and Schema2 have
> different name spaces (and hence I cant use the
> <include> directive. When building each schema I supply
> a different package name. I want to create a package
> hierarchy as
> follows:
>
> com.entegrity.parent
> com.entegrity.parent.schema1
> com.entegrity.parent.schema2
>
> Hence the schema1 and schema2 class files will be in
> separate packages - and under the same root.
>
> The basic problem is that none of the schema1 java
> files have statements to import the schema2 files.
>
> Is there any way to automatically cause Castor to
> include them - or do I manually have to handcraft the
> java source files.
>
>
> John
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail
> to [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev