W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2013

Restriction error

From: Dave Pawson <dave.pawson@gmail.com>
Date: Wed, 20 Mar 2013 13:03:38 +0000
Message-ID: <CAEncD4dZN_1xTiAXDg5W74LX24ExzFDPgGQv-r-s5B1O1pbAYw@mail.gmail.com>
To: XMLSchema-dev <xmlschema-dev@w3.org>
Very new to xsd

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

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

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?


Dave Pawson
Docbook FAQ.
Received on Wednesday, 20 March 2013 13:04:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:04 UTC