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

Restrictions and base type question

From: Michael McClellan <mcclellan2000@hotmail.com>
Date: Sun, 24 Jun 2001 22:59:22 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-ID: <F206elKWQTHL2bti2Sb00002f33@hotmail.com>
Simple question. Probably been answered, couldn't find exact match in 
archive.

A Sample like this:

<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="qualified">
	<xsd:complexType name="AcademicTitle">
		<xsd:simpleContent>
			<xsd:restriction base="xsd:string">
				<xsd:enumeration value="Other" />
				<xsd:enumeration value="Prof" />
				<xsd:enumeration value="Dr" />
				<xsd:enumeration value="Magister" />
				<xsd:enumeration value="Phd" />
				<xsd:enumeration value="MBA" />
				<xsd:enumeration value="BA" />
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>
</xsd:schema>

Gives me an MSXML error like:

Undefined complexType xsd:string is used as a base for complex type 
restriction.

Any suggestions on how I can validate while preserving 'AcademicTitle' as a 
'complexType' would be greatly appreciated.

Thanks, Michael McClellan


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Received on Monday, 25 June 2001 03:23:25 GMT

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