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

RE: semantics in schema (xsd)


RE:  semantics in schema (xsd)
# 
# These are all examples of the software applying too rigid a test
# and failing with real-world data.
# 

Every example of an integrity constraint that I have ever seen in a database
textbook has been flawed, in the sense that it fails the test "are there any
conceivable circumstances in which this constraint could prevent me
representing the state of the real world accurately". In practice, such
integrity constraints (and the same goes for XML Schemas) are there for two
purposes: (a) to detect data that is more likely to be wrong than right, and
(b) to protect the receiving software from having to deal with situations
that it hasn't been designed to cope with. If you think you are describing
situations that can't happen in the real world, you are probably deluding
yourself.

(An example. A retail system in France kept rejecting a particular
transaction. It was programmed to reject the sale of an item that would make
the stock level negative: i.e. the supermarket couldn't sell more of an item
than it had bought. On investigation, it turned out that the product in
question was live fish, and they were breeding in the tank).

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.