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

subtyping

From: Michael McCaleb <mccaleb@eeel.nist.gov>
Date: Fri, 15 Dec 2000 17:03:42 -0500
Message-Id: <v02130503b660459e94c2@[129.6.185.17]>
To: www-xml-schema-comments@w3.org
Dear XML Schema editor,

Observation:
In doing a comparison between the EXPRESS data modeling language (ISO
10303-11) and XML Schema, I noticed that in EXPRESS it is possible to
create a subtype that both is a restriction (e.g., attribute value range
restriction) of its supertype and an extension (e.g., an addition of
another attribute) of its supertype. From the expressions for simpleContent
complexContent (see below) it appears that in order to do the same thing in
XML Schema that in intermediate throw away subtype would need to be
created.

<simpleContent
  id = ID
  {any attributes with non-schema namespace . . .}>
  Content: (annotation? , (restriction | extension))
</simpleContent>


<complexContent
  id = ID
  mixed = boolean
  {any attributes with non-schema namespace . . .}>
  Content: (annotation? , (restriction | extension))
</complexContent>


Question:
Would it be worthwhile to permit both restriction and extension to be in
the same simpleContent and complexContent.


Sincerely,

Mike McCaleb
Received on Friday, 15 December 2000 17:02:21 GMT

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