W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2002

multiple attributes help.

From: <reshma@intelesoftech.com>
Date: Wed, 13 Nov 2002 04:29:28 -0800 (PST)
Message-ID: <3837.203.145.153.123.1037190568.squirrel@intelesoftech.com>
To: xmlschema-dev@w3c.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:35 GMT