[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Schema issue - enumerations - off topic apology

Subject: Schema issue - enumerations - off topic apology
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Sat, 6 Oct 2012 17:00:12 +0100
 Schema issue - enumerations - off topic apology
Apology for posting a schema question here.

 I have been unable to overcome and sufficiently comprehend the
formalities of subscribing and posting to the schema-dev mailing list
(I've subscribed and posted and nothing seems to have happened)

I need to overcome this issue to deliver a completed schema today (was
due yesterday).

The simple type concerned is restricted thus

    <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"/>
	    <xsd:enumeration value="Distribution Warehouse"/>
            <xsd:enumeration value="General Industrial"/>
            .......
..          .......
	</xsd:restriction>
    </xsd:simpleType>

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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.