Oliver, It looks like you are suffering from a bug, indeed. I will attach any findings to the Jira issue you have created.
Regards Werner > -----Ursprüngliche Nachricht----- > Von: Oliver Fourman [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 05. März 2007 12:40 > An: dev@castor.codehaus.org > Betreff: Re: AW: [castor-dev] Castor Schema API: Bug in Annotation > processing? > > Hello Werner, > thanks for your reply. I've created a bug report at > http://jira.codehaus.org/browse/CASTOR-1895 > I attached a complete example that shows my problem. I hope that it is a > real bug and no handling error. > Regards, > Oliver > > P.S.: Last week I posted a question concerning the API capabilities. > Perhaps you can help me also with that and tell me if my described plans > make sense or not. I'm working on an application that converts an > abstract datatype model to xml schema. > > Werner Guttmann schrieb: > > If you raise a 'bug report' at http://jira.codehaus.org/browse/CASTOR > and attach all relevant files for me to be able to replay this, I'd be > more than willing to look at this. > > > > Regards > > Wenrer > > > > > >> -----Ursprüngliche Nachricht----- > >> Von: Oliver Fourman [mailto:[EMAIL PROTECTED] > >> Gesendet: Montag, 05. März 2007 10:48 > >> An: dev@castor.codehaus.org > >> Betreff: [castor-dev] Castor Schema API: Bug in Annotation processing? > >> > >> Hi, > >> > >> I figured out a problem in processing more than one documentation in an > >> annotation section: > >> Following example: > >> > >> Annotation currentSchemaAnnotation = new Annotation(); > >> for(int i=1; i<=3; i++) { > >> Documentation doc = new Documentation(); > >> doc.setSource("INFO "+i); > >> currentSchemaAnnotation.addDocumentation(doc); > >> } > >> this.schema.addAnnotation(currentSchemaAnnotation); > >> > >> _Result:_ > >> <xsd:annotation> > >> <xsd:documentation source="INFO 1"/> > >> <xsd:documentation source="INFO 1"/> > >> <xsd:documentation source="INFO 1"/> > >> </xsd:annotation> > >> > >> I seems that the SchemaWriter has problems to write all the registered > >> Documentation objects. Only the first Document Source is used in every > >> Documentation line :-( > >> > >> Help would be appreciated, > >> Oliver > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email