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

XSV v XML Spy 3.5 beta 4 disagreement

From: <MarkH@i2.co.uk>
Date: Mon, 15 Jan 2001 15:28:20 -0000
Message-ID: <1E73B637CFC3D411A12F00B0D0795DDD0914B5@uknts40exh01.i2.co.uk>
To: xmlschema-dev@w3.org
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>


Thanks

Mark
--
Mark Hughes
  Agile HTML Editor
    http://www.agilic.com
Received on Monday, 15 January 2001 10:35:38 GMT

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