W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Meaning of "enumeration" and "pattern" in xs:list

From: Wiedmann, Jochen <jochen.wiedmann@softwareag.com>
Date: Fri, 30 May 2003 00:56:29 +0200
Message-ID: <6B2492D663ECD4119EB70008C7E6F6730459AEE9@daemsg01.software-ag.de>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>


I apologize if the question is stupid, but I am unable to read the answer
out of the schema specification:

What is the precise meaning of the "enumeration" and "pattern" facets, when
used in an xs:list type?
Are they constraining the entire list or the items only?

For example, if I have the following type:

      <xs:list itemType="int"/>


      <xs:enumeration value="1 2 3"/>

be a valid constraint? And if so, would "1 3 2" be a valid value or not?


Received on Thursday, 29 May 2003 19:35:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC