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>


Hi,

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">
  ...
</type>

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

<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?

Cheers

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:46 GMT