users@jaxb.java.net

Re: Problem with a mixed content element type

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 17 Apr 2006 16:47:36 -0700

Andreas Pakulat wrote:
> Andreas Pakulat schrieb:
>> Andreas Pakulat schrieb:
>>> Hi,
>>>
>>> suppose I have the following schema fragment:
>>>
>>> <xsd:complexType name="PropertyNameType">
>>> <xsd:complexContent mixed="true">
>>> <xsd:extension base="ogc:ExpressionType"/>
>>> </xsd:complexContent>
>>> </xsd:complexType>
>>>
>>> Where "ogc:ExpressionType" is just an abstract type.
>>>
>>> xjc generates a PropertyNameType without any getters/setters, the
>>> generated javadoc also doesn't mention the mixed="true" attribute
>>> anymore? It seems like it's ignored.
>>>
>>> I'm using JAXB 2.0 RC.
>>
>> BTW: The same happens when I move the mixed attribute up to the
>> complexType.
>>
>> I'm now trying to get a CVS/nightly JAXB maybe this is a already-fixed bug?
>
> No luck with that, I opened a defect (#146) for this problem.

Thanks.

This really doesn't work because the base classes have already been
generated in such a way that it can't take mixed contents.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com