- From: Michael Kay <mike@saxonica.com>
- Date: Mon, 08 Oct 2012 10:45:01 +0100
- To: xmlschema-dev@w3.org
The error is probably in the part of the code that you haven't shown us. Can you reduce it to a complete but minimal working example? Michael Kay Saxonica On 06/10/2012 14:31, Ihe Onwuka wrote: > I have an restriction by enumeration as follows > > <xsd:simpleType name="PropertySubType"> > <xsd:restriction base="xsd:string"> > <xsd:enumeration value="Cold Store"/> > <xsd:enumeration value="Data Centre"/> > <xsd:enumeration value="Design and Build"/> > etc..... > > If in my instance I have an element that uses the above data type and > say has value Data Centre I get an error > > cvc-enumeration-valid: Value 'General' is not facet-valid with respect > to enumeration '[Cold Store, Data Centre, Design and Build, > Distribution Warehouse, etc.......]'. It must be a value from the > enumeration. > > So it is not recongnising space seperated enumerations.. > > Schema is validated with Xerces 1.1 > > Thanks > > >
Received on Monday, 8 October 2012 09:45:25 UTC