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

XML Schema 1.1 requirements : extensible enumerations

From: by way of <ben@jetpen.com>
Date: Mon, 25 Mar 2002 09:27:11 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
I would like to submit the requirement for extensible enumerations to
XML Schema 1.1. This requirement has its origins in our work in the
OSS through Java Initiative. See: http://java.sun.com/products/oss/ In
our API development efforts, we have identified extensibility
patterns, where variability is encapsulated. Java interfaces are
isomorphic to XML messages through a language binding. (See JSR 144)

There have been cases, where we have needed enumerations that can be
extended. There are ways to support extensible enumerations elegantly
in Java. However, we have struggled to find a reasonable way to do
this in XML Schema. We settled on working around the problem in XML
Schema using substitution groups. This approach replaces the full set
of enumeration values, whenever it needs to be extended by a
subtype. An approach that supports extension and restriction of
enumerations similar to complexTypes would be much better.

Received on Monday, 25 March 2002 11:30:45 UTC

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