users@jaxb.java.net

Re: Annotation Restrictions - Spec vs. XJC

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 27 Feb 2003 10:26:52 -0800

Ouch, this is a terrible bug. I confirmed the behavior. I'll investigate
why this is happening.

> Is there any workaround for this?

Meanwhile, the workaround is to have an extra <sequence> around
<element> and attach the customization to that node.

Like this:

     <xs:sequence>
       <xs:annotation><xs:appinfo>
          <jxb:property name="OtherElementList"/>
       </xs:appinfo></xs:annotation>
       <xs:element ref="GlobalElement" maxOccurs="unbounded" />
     </xs:sequence>


regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com