If they are all in one target namespace simply create a single .xsd that includes all three and pass that to the Source Generator.
If you want separate Java packages you will have to set a different target namespace in the applicable .xsd files and then use xsd:import instead of xsd:include. Make sure to provide Castor with the namespace to java package mappings. http://www.castor.org/sourcegen.html#Mapping-XML-namespaces-to-Java-pack ages -----Original Message----- From: Haug, Wolfgang [mailto:[EMAIL PROTECTED] Sent: 19 July 2005 07:35 To: [email protected] Subject: [castor-user] Castor Source Generator and xs:include Hello, I work with CASTOR XML Data Binding and generate with the Castor Source Generator my Objektmodell based on an XML Schemas. The following problem. I built Schema A.xsd and Schema B.xsd. Both include Schema X.xsd (xs:inlclude). Now I want to generate the object model for Schema X.xsd, once. Then I want to generate the object model for A.xsd and B.xsd. The generator should not generate the classes for X.xsd but reference the already generated classes for X.xsd. How can I do this ? Thanks, WH ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- The information in this message is confidential and may be legally privileged. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message in error, please advise us immediately. Internet emails are not necessarily secure. CODA does not accept responsibility for changes to any email which occur after the email has been sent. Attachments to this email may contain software viruses, which could damage your systems. CODA has checked the attachments for viruses before sending, but you should virus-check them before opening. ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

