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

test case mgA015.xsd

From: Stanley Guan <stanley.guan@oracle.com>
Date: Wed, 20 Mar 2002 14:05:59 -0800
Message-ID: <3C9907C7.859BCDCB@oracle.com>
To: Schema XML <xmlschema-dev@w3.org>
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 Wednesday, 20 March 2002 17:06:06 UTC

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