xsd:group and minOccurs

I'm trying to get a definitive interpretation of the use of minOccurs
attribute and an xsd:group reference.  The only thing I could find in the
specification is at http://www.w3.org/TR/xmlschema-1/#element-group and it
was a little unclear.

I have an xsd:group defined with a sequence of optional elements as follows:

<xsd:group name="agroup">
	<xsd:sequence>
   		<xsd:element name="A" minOccurs="0" type="xsd:string">
		<xsd:element name="B" minOccurs="0" type="xsd:string">
		<xsd:element name="C" minOccurs="0" type="xsd:string">
	</xsd:sequence>
</xsd:group>

And a reference to it as follows:

<xsd:element name="test">
	<xsd:complexType>
   		<xsd:sequence>
			<xsd:element name="foo" minOccurs="0"
type="xsd:string">
    			<xsd:group ref="agroup"/>
    		</xsd:sequence>
  	</xsd:complexType>
</xsd:element>


Since the "agroup" reference in the "test" element has an implied
minOccurs="1" would a document with an empty "test" element be valid against
the schema?

Received on Wednesday, 28 August 2002 11:23:56 UTC