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

Treatement of whitespace in enumerations

From: Ihe Onwuka <ihe.onwuka@gmail.com>
Date: Sat, 6 Oct 2012 14:31:16 +0100
Message-ID: <CALfs7+w1d5tcDQ9gCeth81YR3pg4n1=zO2zkuRCcRNww-RGE7Q@mail.gmail.com>
To: xmlschema-dev@w3.org
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"/>

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

So it is not recongnising space seperated enumerations..

Schema is validated with Xerces 1.1

Received on Monday, 8 October 2012 08:16:28 UTC

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