W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 1999

Re: minOccur, maxOccur

From: David Beech <dbeech@us.oracle.com>
Date: Mon, 12 Jul 1999 05:42:23 -0700
Message-ID: <3789E2AF.B482A640@us.oracle.com>
To: paul@prescod.net
CC: www-xml-schema-comments@w3.org

Thanks for your input.  You wrote:

> I dispute the usefulness of minOccur and maxOccur. I would like to hear
> about where people would use these features. I find that people often want
> them but can find a clearer way of expressing their document type when
> they are not available.

The WG has entered this as an issue.

Personally I agree with you, but I wonder whether we need a bit more
than just the existing DTD alternatives, if that is what you were

For mapping arrays with a fixed number of elements into XML, minOccur
and maxOccur are in any case not what is needed - so maybe something
more like lowerBound and upperBound on indexing into ordered collections
as a way of constraining + more strongly?  Even lowerBound is a bit
generous towards languages that support it or use 0-indexing, and if we
didn't need that we could just have Occurs.


Received on Monday, 12 July 1999 09:01:33 UTC

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