W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2012

Re: Treatement of whitespace in enumerations

From: Michael Kay <mike@saxonica.com>
Date: Mon, 08 Oct 2012 10:45:01 +0100
Message-ID: <5072A09D.1060402@saxonica.com>
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

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