There is a -cp switch for this. If a schema is split in two: s1 and s2, where s1 is stand alone (i.e. doesn't have references to items in s2) and s2 uses item from s1 by reference so that there will not be multiple definitions of the same name in the s1 + s2 union, they can be compiled separately using the classpath for compiled references.
Compile s1 first as usual, and than compile only s2 putting s1.jar on the classpath. scomp -out s1.jar s1.xsd scomp -out s2.jar -cp [path_to]xbeans.jar;s1.jar s2.xsd In your case you might find it useful to split it in three: base, get, list, following the same idea. Cezar > -----Original Message----- > From: kris16 [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 14, 2006 6:58 AM > To: user@xmlbeans.apache.org > Subject: Re: Error Duplicate attribute group > > > Hi again, > I tried to solve this problem by running the scomp command twice. > Generating > two different jar files, one for getitemmaster and one for listitemmaster, > and it seems to work. > The common parts like codelists, currencycode etc. are included in both > jarfiles and thats not so nice. > I noticed that it is possible to use a xsdconfig file and i have managed > to > place GetItemMaster and ListItemMaster in different packages. > > It has to be a better solution then the one i have come up with ? > Is there a solution to the "Duplicate attribute group" error ? > /Regards Krister > > > > > > kris16 wrote: > > > > Hi, > > im trying to use xmlbeans together with OAGS 9.0 and their XSD files. > > It seems to work fine when I generate the java code for one XSD file, > > GetItemMaster.xsd. > > > > scomp -verbose -src D:\java\src -out itemmaster.jar > > D:\temp\oagis-release-9_0-XSD- > GA\OAGIS\9.0\BODs\Standalone\GetItemMaster.xsd > > > > When I try to generate java code from more than one XSD file then I run > > into trubble. > > If I add the xsd file "ListItemMaster.xsd" to the command line for scomp > > the Java code generation fails. > > Probably because both XSD files,GetItemMaster.xsd and > ListItemMaster.xsd, > > uses the same include files. > > > > scomp -verbose -src D:\java\src2 -out itemmaster.jar > > D:\temp\oagis-release-9_0-XSD- > GA\OAGIS\9.0\BODs\Standalone\GetItemMaster.xsd > > D:\temp\oagis-release-9_0-XSD- > GA\OAGIS\9.0\BODs\Standalone\ListItemMaster.xsd > > > > I get the following error when I use: > > ListItemMaster.xsd:22:9: error: sch-props-correct.2: Duplicate attribute > > group: [EMAIL PROTECTED]://www.openapplications.org/oagis/9 > > (Original attribute group found in file: GetItemMaster.xsd) > > > > How can I solve this problem ? > > Is there a workaround ? > > /Regards Krister > > > > -- > View this message in context: http://www.nabble.com/Error-Duplicate- > attribute-group-tf2818956.html#a7871978 > Sent from the Xml Beans - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]