Treatement of whitespace in enumerations

Ihe Onwuka <[email protected]> Sat, 6 Oct 2012 14:31:16 +0100
Newsgroups gmane.text.xml.schema.devel
Message-ID <CALfs7+w1d5tcDQ9gCeth81YR3pg4n1=zO2zkuRCcRNww-RGE7Q@mail.gmail.com>
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