multiple attributes help.

Hello all,
Is it possible to have multiple attributes for an element as follows.

<xsd:element name="product" type="ProductType"/>
  <xsd:complexType name="ProductType">
    <xsd:sequence>
      <xsd:element name="number" type="xsd:integer"/>
      <xsd:element name="size" type="xsd:integer"/>
    </xsd:sequence>
    <xsd:attribute name="effDate" type="xsd:date"/>
    <xsd:attribute name="effTime" type="xsd:time"/>
  </xsd:complexType>
</xsd:element>

Is the above example is right or should I define a attributeGroup & refer 
it?

Waiting for immediate reply,
Reshma.

Received on Wednesday, 13 November 2002 06:28:46 UTC