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

RE: Are people really using Identity constraints specified in


RE:  Are people really using Identity constraints specified in
> Michael, your messages and examples are precise and compelling.
> Would you mind elaborating more upon what you see as
> the role of validation? 

I see two main roles for validation:

(a) to protect the system from data that it cannot handle. If the system can
only handle 7 values for the "colour" attribute of a car, then it should
validate incoming data to check that it has one of those 7 values. It would
be better to design the system to handle more colours, but if you can't
afford to do that, then you must check that the incoming data fits within
the design limits of your system.

(b) to enforce a contract. If you have a contract with the supplier of a
news feed that all articles sent will carry either today's or yesterday's
date, then you should check that your supplier is keeping to the contract.
(You need to be very clear about what you plan to do when validation fails.)

There is also scope for reasonableness checks to catch data input errors.
But they belong as close to the user interface level as possible, not at the
information management level.

> Should there be levels of validation as I suggested last week? 

In the sense that there are always layers of protocol, then yes. XML
well-formedness and validity checking can be seen as two such levels.

I think there is also room for validation processes that check data to see
if it conforms to business rules. But very often, that should result in some
kind of exception reporting, rather than rejection of the data. Often it
will be correct, valid data, revealing that the business rules have indeed
been breached.
 
Michael Kay


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.