Hi all,
I have a problem with the Castor generator. I have a schema file uses the same name for different elements. For example, there are multiple elements named "shape" that are used in different places, with different possible values (for example: object2D/shape with possible values "circle" and "triangle" and object3D/shape with possible values "sphere" and "cube"). Of course, I'm using a binding.xml file to tell Castor what to call the classes. The different classes are generated correctly, but are not referred to correctly. Castor correctly generates the two shape classes, "Object2D_shapeType" and "Object3D_shapeType", but incorrectly refers to shape objects with the class name "ShapeType" (which is of course a nonexistent class). Is this a bug or am I doing something wrong? Here's my http://www.nabble.com/file/7453/test.xsd schema file (test.xsd) and my http://www.nabble.com/file/7454/binding.xml binding.xml file . I'm running Castor with the following parameters: -i test.xsd -binding-file binding.xml Thanks in advance for any light you can shed on this! Best regards, Jan. -- View this message in context: http://www.nabble.com/Generator-trips-over-different-elements-with-same-name-tf3472379.html#a9690213 Sent from the Castor - User mailing list archive at Nabble.com.

