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

FW: Fallacies of Validation ... RE: Are people reall

  • To: <xml-dev@l...>
  • Subject: FW: Fallacies of Validation ... RE: Are people really using Identity constraints specified in XML schema?
  • From: "Roger L. Costello" <costello@m...>
  • Date: Wed, 25 Aug 2004 15:21:04 -0400
  • Thread-index: AcSKqZBnPwns8VjXRlC9EATIbOwgdwALvH2A

tight loose validation schema
I am forwarding an excellent message from Mary Holstege:

-----Original Message-----
From: Mary Holstege [mailto:holstege@m...] 
Sent: Wednesday, August 25, 2004 9:44 AM
To: Roger L. Costello
Subject: Re:  Fallacies of Validation ... RE:  Are people
really using Identity constraints specified in XML schema?


Roger L. Costello writes:
> It would be very useful if we could have a simple example that shows how
> several schemas might be employed, rather than a single schema.  Could
> someone provide an example?  

Here's a really quick example: support all you care about in some phase of
processing is picking up the IDs in a document. Then you define a minimal
schema where everything is open with the appropriate ID attributes. Maybe
you're going to generate an index. In another phase of processing all you
care
about is checking that dates are in the right date range. So you have
another
minimal schema that only pays attention to dates. Or to take another
example,
you have a broad dispatch schema that really just wants to figure out
whether
you have a foo or a bar, but everything else is left loose, because once you
dispatch to the foo-branch or the bar-branch you can put in place a tight
schema that will help you clean your data.

Alternatively, you let go of what I consider the number one schema fallacy:

* validation is a pass/fail operation
Not so, although lots of people are still stuck in that way of thinking,
including, alas, a lot of the vendors.

The schema design goes to great pains to make it possible to do things like
this, for example:
* validate a document against a tight schema, and then ask questions of the
result such as "show me all the item counts that failed validation because
they
were too high"

That is why there is the PSVI, that is why UPA is so important (how do I
know
which item count failed validation if I can't figure out which element
matched
which particle? or failed to match?)

//Mary

btw: xml-dev is a read-only medium for me at the moment, which is why I am
responding privately.




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.