Hi Brian, I can reproduce your problem: it is linked to the handling of ENUMERATION in the SourceGenerator. Since the Enumeration binding feature is not yet implemented, no revision has been made to the code to handle differently ENUMERATION. Currently when using ENUMERATION, no matter in which schema it is defined, the classes are going to be created in the same package of the current schema for which we are generated sources from. I will put that on my to-do list and I will try to come with a fix ASAP.
Sorry for the inconvenience, Arnaud > -----Original Message----- > From: Brian Goetz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 11, 2002 10:58 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] SourceGenerator -- package mapping with IMPORT > > > >A fix is now available in the CVS. Let me know if it is ok with you. > > Thanks for the speedy response! But maybe I got the wrong version > (although I did a CVS checkout), because it still doesn't appear to > work. I still get > > public com.a.types.Bstring getName() > > instead of > > public com.b.types.Bstring getName() > > with the files I posted yesterday. Here's what I did: > > [brian@lx xsd]$ echo $CLASSPATH > .:./castor-0.9.4.1-xml.jar:./xercesImpl.jar:./xmlParserAPIs.jar > [brian@lx xsd]$ java org.exolab.castor.builder.SourceGenerator -i a.xsd > > Warning: Do not forget to generate source code for the following imported > schema: file:///tmp/xsd/b.xsd > [brian@lx xsd]$ grep getName com/a/AElement.java > public com.a.types.Bstring getName() > } //-- com.a.types.Bstring getName() > [brian@lx xsd]$ > > > > -- > Brian Goetz > Quiotix Corporation > [EMAIL PROTECTED] Tel: 650-843-1300 Fax: 650-324-8032 > > http://www.quiotix.com > > ----------------------------------------------------------- > 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
