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

Re: Attribute groups

From: Jeni Tennison <jeni@jenitennison.com>
Date: Sat, 16 Mar 2002 00:41:28 +0000
Message-ID: <99231831476.20020316004128@jenitennison.com>
To: "Snow, Corey" <CSNOW@ddpwa.com>
CC: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi Corey,

> Here's another question for you, then- is it possible, using
> abstract types and/or elements, to create a "polymorphic" element?

If by that you mean an element that can have any content, then yes:

<xs:element name="foo" type="xs:anyType" />

This declares the foo element with 'anyType' as the content. It can
hold elements or text of any kind, mixed together.

By default, the same goes for any element whose type is a type from
which other types are derived. If a type can have other types derived
from it, then elements of that type can have their content changed to
those other types.



Jeni Tennison
Received on Friday, 15 March 2002 19:41:44 UTC

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