users@jaxb.java.net

Re: problem about xs:choice

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 02 Dec 2003 09:08:22 -0800

Use a <property> customization so that you can bind the whole choice
into one property.

                    <xs:choice>
                      <xs:annotation><xs:appinfo>
                        <jaxb:property name="Content" />
                      </></>
                      <xs:element ref="Period"/>
                      <xs:element ref="Yearly"/>
                      <xs:element ref="Monthly"/>
                      <xs:element ref="Weekly"/>
                      <xs:element ref="Daily"/>
                    </xs:choice>


regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net