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 

A Sample like this:

<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	<xsd:complexType name="AcademicTitle">
			<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" />

Gives me an MSXML error like:

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

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC