When a sequence compositor is used the child elements can be specified in either of the two ways:
ref attribute : The ref attribute which will contain the value of the attribute which will be equal to the value of the name attribute in every child elements element declaration. This attribute should always refer to an actual element declaration.
For Example:
<xsd:complexType>
<xsd:sequence>
<xsd:element ref=”title”/>
</xsd:sequence>
</xsd:complexType>
name attribute : This attribute is used by specifying a value equal to the child elements name and with it the type attribute is specified as well. The type attribute would contain the user defined complex type.
For Example:
<xsd:element name=”book” type=”bookType”/>