Hi.
>> I have a Java project here which makes use of user-defined
>> annotations. Example:
>>
>> @annotations.TestAnnotation({"a", "b", "c"})
>> public class A {}
>>
>>
>> When I use JAXB's tool schemagen to transform my classes into XSD, the
>> user-defined annotations have gone:
>>
>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
>> <xs:schema version="1.0" xmlns: xs="http://www.w3.org/2001/XMLSchema">
>> <xs:complexType name="a">
>> <xs:sequence/>
>> </xs:complexType>
>> </xs:schema>
>>
>>
>> Is it possible to transform user-defined annotations into the schema
>> with schemagen somehow? I'm happy about any hint that may help.
>
> It would be nice if we can keep the discussion either in the mailing
> list or in the forum, but not both. I remember seeing this question on
> the forum too.
>
> Can you describe more about what schema annotation you'd like to produce
>> from your Java annotation?
Like those processable with annox? There's 1:1 correspondence between Java
annotations and XML. If some toll can XML annotations to XML Schema, my annotate
plugin can get them back if needed. :)
Bye.
/lexi