users@jaxb.java.net

Re: JAXB: Handling of user-defined annotations in JXC

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 06 Dec 2006 15:46:43 -0800

Christian Koppen wrote:
> 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?

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com