- From: Cyrill Zadra <czadra@bluewin.ch>
- Date: 13 Nov 2002 13:10:30 +0100
- To: xmlschema-dev@w3c.org
Hi Reshma, As far as I know is it possible, but I've not yet a lot of xml-schema knowledge now. I would use attributeGroup & refer, when you need the same attribute for other elements. Cyrill reshma@intelesoftech.com wrote: > 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? >
Received on Wednesday, 13 November 2002 07:17:49 UTC