Hello, I would like to know if it is correct the different behavior of the import and include elements regarding the generation of java classes.
Let me explain. We have two schema files: A.xsd and B.xsd. Both in namespace http://www.namespace.com. (Scenario 1) In A.xsd we use: <xs:import schemaLocation="B.xsd" namespace="http://www.namespace.com" /> Then we do: scomp of B.xsd, Create the classes of B.xsd scomp of A.xsd using the classes of B.xsd in the classpath What we get is that the second scomp only produces the classes of A.xsd, skipping the ones of B.xsd, because they were already generated. (Scenario 2) In A.xsd we use: <xs:include schemaLocation="B.xsd" /> Then we do: scomp of B.xsd, Create the classes of B.xsd scomp of A.xsd using the classes of B.xsd in the classpath What we get is that the second scomp produces the classes of A.xsd, and also the ones of B.xsd, even when we have these classes already in the classpath. So we would like to know if this behavior is correct. In some schema files provided to us the builders decided to use include and now we are getting the same classes regenerated several times. To avoid that we changed the include for imports and everything is working fine, but we want to know the reason of this difference. Thank you very much for your help and your time. Best regards, Jose Manuel Valladares --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

