W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

Re: XSV v XML Spy 3.5 beta 4 disagreement

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 15 Jan 2001 15:46:23 +0000
To: MarkH@i2.co.uk
Cc: xmlschema-dev@w3.org
Message-ID: <f5bofx8vmwg.fsf@cogsci.ed.ac.uk>
MarkH@i2.co.uk writes:

> XML Spy v3.5 beta 4 complains about the following, saying that miscType must
> be derived from vlvd:endType by -extension-. In fact it is derived by
> -restriction-. XSV didn't complain when validating the instance. Who's
> right?
> 
> Extract from the instance:
> 		<ends>
> 			<end id="e0001" xsi:type="vlvx:miscEnd">
> 				<properties>
> 					<displayName>end e0001</displayName>
> 				</properties>
> 			</end>
> 		</ends>
> 
> Extracts from the schema:
> 	<complexType name="miscEnd">
> 		<annotation>
> 			<documentation>End Type: miscEnd
> (miscellaneous)</documentation>
> 		</annotation>
> 		<complexContent>
> 			<restriction base="vlvx:endType">
> 				<sequence>
> 					<element name="properties"
> type="vlvx:elementProperties"/>
> 				</sequence>
> 			</restriction>
> 		</complexContent>
> 	</complexType>
> 
> ...
> 
> 	<element name="ends">
> 		<complexType>
> 			<sequence>
> 				<element name="end" type="vlvx:endType"
> minOccurs="0" maxOccurs="unbounded"/>
> 			</sequence>
> 		</complexType>
> 	</element>

I don't see an error, but without the definition of endType (is it
simple or complex?) I can't tell for sure.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 15 January 2001 10:46:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT