users@jaxb.java.net

dublin core SimpleLiteral

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Thu, 15 Sep 2005 22:02:08 +0200

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.

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?

Bye.
/lexi