Restriction error

Very new to xsd

Schema part
<xs:complexType name="DCMIType">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
          <xs:restriction base="dcmitype:DCMIType"/>
        </xs:simpleType>
        <xs:attribute ref="xml:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

when validating an instance to a schema which includes this block, the arrowed
line is being pointed out as in error.
Validating via oXygen 14.2, using saxon


The report is A complex type with simple content {defined at line 196
 of file:/t...} cannot be derived by restriction from a simple
 type

I've read that ten times and it makes little sense.

Can anyone suggest a change to the schema snippet to clarify/remove
the error please?


TiA




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Wednesday, 20 March 2013 13:04:10 UTC