- From: Gignac Donald A CRBE <GignacDA@nswccd.navy.mil>
- Date: Tue, 18 Sep 2001 10:35:37 -0400
- 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 2.5.1.3 "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"/> </xs:attributeGroup> 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