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


From: Liz Castro <lcastro@cookwood.com>
Date: Tue, 15 Aug 2000 14:10:44 -0400
Message-ID: <399987A3.38309998@cookwood.com>
To: www-xml-schema-comments@w3.org
A question about derived lists. Suppose I have a simpleType named
"US-State" (lifted from the Primer) that looks like this:

<xsd:simpleType name="US-State" base="xsd:string">
    <xsd:enumeration value="AK"/>
    <xsd:enumeration value="AL"/>
    <xsd:enumeration value="AR"/>
    <!-- and so on -->

And then wanted to create an element to contain a list of exactly six
states (also from the Primer):

<xsd:simpleType name="SixUS-States" base="US-State"
    <xsd:length value="6"/>

Is there anything that keeps the content of the SixUS-States element
from being, say "AK AK AK AK AK AK"? That is, when you derive a list
from a set of values, can a value be used more than once in the list and
the element still be valid?

Received on Tuesday, 15 August 2000 14:04:19 UTC

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