W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

Re: List Element with an attribute

From: Michael Anderson <michael@research.canon.com.au>
Date: Thu, 25 Jan 2001 11:50:41 +1100
Message-ID: <3A6F7861.BABCC3CE@research.canon.com.au>
To: "Kollu, Kishore" <kishore_kollu@mentorg.com>
Cc: "Xml-Schema-Dev (E-mail)" <xmlschema-dev@w3.org>
"Kollu, Kishore" wrote:

> Hi,
> Can I define a list element with an attribute? If so how?
>
> I would like to have an element like :
>
> <terminals n="4">t1 t2 t3 t4</terminals>

Sure, create a complexType with simpleContent that extends your list
SimpleType by adding an attribute.  See the Primer Sections 2.3.1 and
2.5.1.

mick.
Received on Wednesday, 24 January 2001 19:50:47 GMT

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