title: Can Castor handle class generation from multiple XSDs importing from a base XSD?
body: <p>I have several XSDs that reuse the same entities. For example, both the XSDs for the <code>ProductPurchaseRequest.xsd</code> and <code>ProductQuoteRequest.xsd</code> both have a <code>&lt;product&gt;</code> tag in them to describe the product in question. For this reason I created a <code>Product.xsd</code> file to define the  <code>&lt;product&gt;</code> tag and both <code>ProductPurchaseRequest.xsd</code> and <code>ProductQuoteRequest.xsd</code> import the <code>Product.xsd</code> with a `.</p>
  
  <p>I would like to use Castor to generate Java classes from theses XSDs, and for both of them to use the same class for representing the <code>Product</code> so that I could reuse the same logic for mapping them to our model's <code>ProductModel</code> class.</p>
  
  <p>Can Castor do this? If so, what would be the Ant task syntax for it. If not, would perhaps JAXB be a better alternative?</p>