Re: XSV v XML Spy 3.5 beta 4 disagreement

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 UTC