users@jaxb.java.net

Re: xsd:element and xsd:attribute with same name

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 28 Aug 2006 10:28:03 -0700

Rico Cruz wrote:
> In one of the OTA schemas (OTA_TravelItinerary.xsd, attached), an
> xsd:element and an xsd:attribute has the same name
> ("BookingReferenceID", see lines 5040 and 5046. The jaxb compiler fails
> on this, giving the error: "[ERROR] Property "BookingReferenceID" is
> already defined."
>
> Is this a known bug?

No. See
http://weblogs.java.net/blog/kohsuke/archive/2005/05/compiling_mathm_1.html

I improved the error message to point to this.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com