W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

FW: test case mgA015.xsd

From: Dare Obasanjo <dareo@microsoft.com>
Date: Thu, 21 Mar 2002 07:19:30 -0800
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E05573BF0@red-msg-06.redmond.corp.microsoft.com>
To: <www-xml-schema-comments@w3.org>
Is the schema referenced below valid or not? 

	-----Original Message----- 
	From: Stanley Guan [mailto:stanley.guan@oracle.com] 
	Sent: Wed 3/20/2002 2:05 PM 
	To: Schema XML 
	Subject: test case mgA015.xsd

	See http://www.w3.org/XML/2001/05/xmlschema-test-collection/result-ms-modelGroups.htm
	The expected result for the following schema document should be invalid
	because minOccurs is not specified and it assumes the default value 1
	which is greater than "maxOccurs".
	<?xml version="1.0"?>
	<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	 <xsd:element name="doc" type="foo"/>
	 <xsd:complexType name="foo">
	   <xsd:restriction base="xsd:anyType">
	     <xsd:element name="e1" maxOccurs="0"/>
Received on Thursday, 21 March 2002 10:19:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:59 UTC