- From: Michael Kay <mike@saxonica.com>
- Date: Wed, 20 Mar 2013 13:58:03 +0000
- To: xmlschema-dev@w3.org
Ignore my previous response. It's probably this bug:
https://saxonica.plan.io/issues/1698
which has been fixed in Saxon 9.4.0.7.
Michael Kay
Saxonica
On 20/03/2013 13:03, Dave Pawson wrote:
> 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
>
>
>
>
Received on Wednesday, 20 March 2013 13:58:26 UTC