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.>
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:element name="number" type="xsd:integer"/>
      <xsd:element name="size" type="xsd:integer"/>
    <xsd:attribute name="effDate" type="xsd:date"/>
    <xsd:attribute name="effTime" type="xsd:time"/>

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

Waiting for immediate reply,
Received on Wednesday, 13 November 2002 06:28:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC