- From: Maik Stührenberg <maik.stuehrenberg@uni-bielefeld.de>
- Date: Wed, 20 Mar 2013 14:40:57 +0100
- To: Dave Pawson <dave.pawson@gmail.com>
- Cc: XMLSchema-dev <xmlschema-dev@w3.org>
Hi Dave, I cannot reproduce your error message in oXygen 14.2 (build 2013030817) with this schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/"> <xs:import namespace="http://purl.org/dc/dcmitype/" schemaLocation="dcmitype.xsd"/> <xs:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="dc.xsd"/> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> <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> </xs:schema> Neither saxon nor xerces raise an error. Could you check your build version? Regards, Maik Stührenberg Dave Pawson schrieb: > 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 > > > > -- Dr. Maik Stührenberg Universität Bielefeld Fakultät für Linguistik und Literaturwissenschaft Universitätsstraße 25 33615 Bielefeld Telefon: +49 (0)521/106-2534 E-Mail: maik.stuehrenberg@uni-bielefeld.de http://www.maik-stuehrenberg.de http://www.xstandoff.net
Received on Wednesday, 20 March 2013 13:42:03 UTC