users@jaxb.java.net

Re: dublin core SimpleLiteral

From: Joe Fialli <Joseph.Fialli_at_Sun.COM>
Date: Thu, 15 Sep 2005 18:06:32 -0400

Aleksei Valikov wrote:

> Hi.
>
> I have trouble compiling the following complex type:
>
> <xs:complexType name="SimpleLiteral">
> <xs:complexContent mixed="true">
> <xs:restriction base="xs:anyType">
> <xs:sequence>
> <xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="scheme" type="xs:anyURI" use="optional" />
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
>
> XJC complains that "Content" property is empty.

It is true that there are no children elements, but there is text due to
the mixed="true" so XJC is just missing this boundary case.

>
> I understand that the type looks a bit stupid. This is from the
> official Dublin Core schemas:
> http://www.ukoln.ac.uk/metadata/dcmi/xmlschema/
> I think XJC should process this gracefully. What would the spec people
> say? Joe?
>
If it is legal schema, JAXB needs to be able to handle it.

-Joe


> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>