xsl-list
[Top] [All Lists]

Re: [xsl] Schema issue - enumerations - off topic apology

2012-10-06 11:31:51
The instance has the following

    <propertyDetails>
         <status>Available</status>
         <propertyType>Industrial</propertyType>
         <propertySubType>General Industrial</propertySubType>
    </propertyDetails>

My schema validation fails with this message

cvc-enumeration-valid: Value 'General' is not facet-valid with respect
to enumeration '[Cold Store, Data Centre, Design and Build,
Distribution Warehouse, General Industrial, High Bay Warehouse, etc
.....]'. It must be a value from the enumeration.

It has failed to recognise that General Industrial is a valid value
and instead failed the validation on the word General.

It looks like some sort of problem with enumerations that contain whitespace.

Are you sure you don't have a
<propertySubType>General</propertySubType> elsewhere in your xml?

If not, post a small complete runnable example demonstrating the problem.


-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--