W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2016

Re: Combining enumeration and maxLength

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sat, 23 Apr 2016 18:01:33 +0530
Message-ID: <CABuuzNM=dVJ2rhvd9PY6pt6a+JCdcOBkYJzu2m-sD_+jATWF5w@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: Heiko Niemann <kontakt@heiko-niemann.de>, xmlschema-dev@w3.org
On 21-Apr-2016 3:42 pm, "Michael Kay" <mike@saxonica.com> wrote:
> I would be inclined to do it by defining one type containing the general
rules for values, e.g. maxLength or pattern, and then restricting this
(optionally) with another type that defines more specific rules, eg. an
enumeration.

I think this is a nice suggestion, and reveals a design pattern that can be
adopted.

Note: emailing from my phone.
Received on Saturday, 23 April 2016 12:32:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:10 UTC