I have a CommonTypes.xsd which I\'m including in my all other XSDs using xs:include. I get
Multiple are defined for the target namesp
I know it is an old post, but, as there is no answer for the exact question, here is my proposal:
As mmoossen explained, the trick is to specify different namespaces for the XSDs.
But, adding a namespace attribute in the jxb:bindings tag doesn't work:
Instead of that, you need to add a targetNamespace attribute to the xs:schema tags of your XSDs:
Once done, you will be able to have 1 external customization file (.xjb) declaring different schemaBindings, each of them possibly using a different package: