Why would it be impossible? The schema says that "shape" can appear under
"object2D" or "object3D", and it specifies exactly what the valid options
are in either case. There's no ambiguity; Castor could refer to either
object2D_shapeType or object3D_shapeType in every case, but instead it
refers to a non-existent class "ShapeType". I mean, the generated code
produces compile errors (In this case, "unresolved class ShapeType"), how is
that not a bug?

But thanks for your answer, maybe it would work with different namespaces..
Unfortunately I don't really have much control over the schema I'm using, so
I can't really introduce lots of new namespaces without breaking other
stuff.


Uday Kari wrote:
> 
> The best way to deal with this is to use different namespaces for 2D and
> 3D, Castor should then generate separate two java packages...one for
> your 2D and the other for your 3D.  Otherwise, I believe your are asking
> Castor to do the impossible.
> 
-- 
View this message in context: 
http://www.nabble.com/Generator-trips-over-different-elements-with-same-name-tf3472379.html#a9700680
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to