Hi Werner, I am a colleague of Dennis and would like to help him and you with testing this. We are working on a pretty large project that creates a lot of classes from an xsd (which of course we do not like to change). Could you send Dennis and me some details of how to test your patch? As always the project is on a 'killing' deadline... so any help pointing us in the right direction is greatly appreciated.. Ofcourse we will try to help the castor product as much as possible in return.
Kind regards, Roy On Jan 14, 2008 8:48 PM, Werner Guttmann <[EMAIL PROTECTED]> wrote: > Hi Dennis, > > I think I did some research on this very issue a few months ago, and > even came up with a (very) initial patch for this problem. Problem is > that it still needs to be expanded for it to be ready to be applied, as > it would introduce quite some changes to the syntax of the binding file. > > As far as I remember, I didn't want to introduce such changes right > before a release, and I am facing the same situation with the upcoming > 1.2 release. > > But I could definitely use somebody's help in this area. If you happen > to have some spare time available, I am more than willing to revive this. > > Regards > Werner > > Dennis Spenkelink wrote: > > Hi, > > > > I am having the following problem. In my (given) xml schema some > > elements have the same name in different contexts. > > For example: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <xs:schema xmlns:xs=" http://www.w3.org/2001/XMLSchema" version="2.2.1"> > > <xs:complexType name="A2DType"> > > <xs:sequence> > > <xs:element name="Shape"> > > <xs:simpleType> > > <xs:restriction base="xs:string"> > > <xs:enumeration value="circle"/> > > <xs:enumeration value="triangle"/> > > </xs:restriction> > > </xs:simpleType> > > </xs:element> > > </xs:sequence> > > </xs:complexType> > > > > <xs:complexType name="A3DType"> > > <xs:sequence> > > <xs:element name="Shape"> > > <xs:simpleType> > > <xs:restriction base="xs:string"> > > <xs:enumeration value="sphere"/> > > <xs:enumeration value="cube"/> > > </xs:restriction> > > </xs:simpleType> > > </xs:element> > > </xs:sequence> > > </xs:complexType> > > </xs:schema> > > > > I would like to use the code generator to encapsulate the above two > > shape enumerations into two different classes A2Shape and A3Shape, but > > so far i have had no luck by using binding files. > > My issue is related to CASTOR-1924 but, for me, naming the anonymous > > simpleType is not a solution. Is there meanwhile another solution for > > this problem? > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > >

