- From: Liz Castro <lcastro@cookwood.com>
- Date: Tue, 15 Aug 2000 14:10:44 -0400
- 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 --> </xsd:simpleType> 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" derivedBy="xsd:list"> <xsd:length value="6"/> </xsd:simpleType> 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? Thanks, Liz
Received on Tuesday, 15 August 2000 14:04:19 UTC