users@jaxb.java.net

Re: unmarshal/marshal discrepancy with attribute

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 08 Jan 2003 12:03:55 -0800

The bug of RI in this case is its inability to reject this schema. I
checked it with my current working version and made sure that it reports
an error.

Now the correct fix to this problem is to add a customization that
changes the property name.

<xs:complexType name="BIND-experimental-system1">
  <xs:simpleContent>
    <xs:extension base="xs:integer">
      <xs:attribute name="value">
        <xs:appinfo><xs:annotation>
          <jaxb:property name="category"/>
        </xs:annotation></xs:appinfo>
        ...


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