W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2000

Is the concept of Element Equivalence Classes really needed?

From: David Rosenborg <david.rosenborg@omgroup.com>
Date: Wed, 19 Jan 2000 18:10:16 +0100
To: www-xml-schema-comments@w3.org
Message-ID: <4125686B.005E27C0.00@omext02.omgroup.com>


I think it would be more intuitive if you could specify an occurence
of a class of elements by specifying just the allowed type, like in:

<type name="Foo">

<element name="bar">
    <element type="Foo"/>

<element name="foo" type="Foo"/>
<element name="baz" type="Foo"/>

In this (experimental) example both foo and baz would be allowed as
a child to bar.

Why do we need equivalence classes to accomplish this? To me
they just add an unnecessary level of abstraction. What am I missing?


David Rosenborg
OM Technology AB
Received on Wednesday, 19 January 2000 12:10:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:46 UTC