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

Re: modeling, validating and documenting an xml grammar


rubbish data
in my experience of these things the worst data quality problems are the
ones that can't be expressed by some dtd or other spec.

the best reason for allowing m,n restrictions is that it reflects the
modern approach to numbers - in the beginning there was 1, 2, many; then
we got 3+; real numbers etc. we now think in terms of more than 1, 2,
many and it seems reasonable to me that we should express that in our
specs and then learn to live with the consequences of our precision. we
will build better systems as a result of this.

however the restrictions won't make the data quality better because of
the simple fact that if i know there should be 1 - 5 entries and there's
6 i know it's wrong, but if there's 4 i have no idea if it's right or
wrong

so in practice i relax the restrictions in the spec and then use domain
knowledge of things that i know are correct - like less than 6, to test
the quality of the data. i can then use some simple stats to get an idea
of the probable error rate in the difficult to test stuff. i lose this
ability when the operators are constrained. worse as pointed out in
another posting, users often enter more rubbish to gtet around the
restrictions thus increasing the error rate further.

rick

On Thu, 2003-06-19 at 10:39, Rich Salz wrote:
> > Even in a case like that, somewhere you or software would have to decide
> > what to do in case there were more records than the form could hold.  That
> > cannot be done with the information in the schema anyway.  So why bother
> > putting the constraint into the schema in the first case?  It doesn't really
> > solve the problem it is there to handle.
> 
> I am in awe of the hubris of folks who can make such generalizations.
> 
> "Trust me, if you try to strictly define your data, then your software
> will [expletive deleted]."
> 
> Wow.
> 
> Perhaps folks really mean "this is the final straw, making XSD so
> complex that as validation-implementors we cannot stand for it."
> But that is not what they've been saying.
> 
>         /r$
> 
> --
> Rich Salz                  Chief Security Architect
> DataPower Technology       http://www.datapower.com
> XS40 XML Security Gateway  http://www.datapower.com/products/xs40.html
> XML Security Overview      http://www.datapower.com/xmldev/xmlsecurity.html
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


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.