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

Re: Rick Jelliffe quotable quote on the purpose of schemas

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Tue, 12 Dec 2006 21:16:46 +1100

Re:  Rick Jelliffe quotable quote on the purpose of schemas
Paul Spencer wrote:
> I agree totally with Rick Marshall, but for slightly different reasons. Very
> often, the data being validated has been generated by some computer system
> that has extracted data from a database. When receiving the data, a schema
> will usually be used to validate both the structure of the document (which
> has been created by the software) and the data types (that rely on the
> database content). These are completely separate issues and should be
> treated separately. I might choose to reject the document if the structure
> is incorrect, but process those parts that I can if the data does not meet
> datatype constraints, while quarantining the rest for some manual
> inspection.
>   
I don't think anyone is suggesting that all validation occur at once 
with fail-on-first-error.
(Err, except, of course, that that is how some grammar systems work.)

Or that different folks have different ideas and requirements for 
grouping together
constraints: the division of structural (what elements and attributes 
can go where?)
and data types (what values can data content have?) being an old favourite.

For example, in Schematron you can have one phase that validates only 
structure
and one phase that validates only datatypes if you want.

So me saying that it could be feasible to substitute a path based 
technology for
grammars does not in any way imply throwing away structural validation.
The fact that talking of weaning ourselves off grammars makes some people
say that they still want to be able to validate structures shows how 
embedded
the structure=grammar habit is.

Cheers
Rick Jelliffe


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.