W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2001

problem with the first example in clause "Union datatypes " of part 2 "Datatypes" of the Schema specification

From: Gignac Donald A CRBE <GignacDA@nswccd.navy.mil>
Date: Tue, 18 Sep 2001 10:35:37 -0400
Message-ID: <1F9F67162ADED3119F18009027A8F404C6056E@crbeex03.dt.navy.mil>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Cc: "Westbrook E L (Lori) CRBE" <WestbrookEL@nswccd.navy.mil>, "Garner F J (Joe) CRBE" <GarnerFJ@nswccd.navy.mil>, "Junod L J (John) II CRBE" <JunodLJ@nswccd.navy.mil>
The first example in clause "Union datatypes" (http://www.w3.org/TR/xmlschema-2/#datatype-dichotomies) of part 2 "Datatypes" of the Schema specification contains the tags

	<attributeGroup name="occurs"> 
	<attribute name="minOccurs" type="nonNegativeInteger" default="1"/> 
	<attribute name="maxOccurs"> 

The "default" attribute should be specified with a value of "1" on the tag defining the "maxOccurs" attribute as in the case of the tag defining the "minOccurs" attribute. 

See clause 2.2.1 "Occurrence Constraints" (http://www.w3.org/TR/xmlschema-0/#OccurrenceConstraints) of the Schema primer which states
	The default value for both the minOccurs and the maxOccurs attributes is 1. 

See also the definition of the "maxOccurs" attribute 
	<xs:attributeGroup name="occurs"> 
	<xs:annotation><xs:documentation> for all particles</xs:documentation></xs:annotation> 
	<xs:attribute name="minOccurs" type="xs:nonNegativeInteger" use="optional" default="1"/> 
	<xs:attribute name="maxOccurs" type="xs:allNNI" use="optional" default="1"/> 

in the normative "Schema for Schemas" (http://www.w3.org/TR/xmlschema-1/#normative-schemaSchema) in part 1 "Structures" of the Schema specification.

Donald Gignac		"gignacda@nswccd.navy.mil"		1-301-227-3348
Received on Tuesday, 18 September 2001 10:37:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:53 UTC