W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

error in Sun test case (xsd022)?

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Sat, 3 Aug 2002 11:36:15 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-ID: <28631.1028388941@www6.gmx.net>




Dear all,

the Sun test case xsd022.xsd contains the following element declaration
which seems to be
incorrect. The restriction element must have a base attribute that refers to
a complex type with simple content (cf. section 3.4.3: Complex Type
Definition Representation OK.2).

Thanks for your attention,
--Stefan

	<xsd:element name="root">
		<xsd:complexType>
			<xsd:choice maxOccurs="unbounded">
				<xsd:element name="child1">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:restriction>
								<xsd:simpleType>
									<xsd:list itemType="abc"/>
								</xsd:simpleType>
							</xsd:restriction>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="child2">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:restriction base="abcOrBoolean"/>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
Received on Monday, 5 August 2002 05:25:42 GMT

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