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

Re: What are schemata

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Mon, 01 Jun 1998 08:16:58 -0400

define schemata
Tim Bray wrote:
> 
> >> | So is a schema a function that maps a document to a truth value?
> >>
> >> I'd rather say that it is a definition of a set of documents, just as
> >> a formal language is usually considered to be the set of sentences
> >> that are well-formed in that language.
> 
> Hmm, this line of thought may be perpetuating what I see as one of
> the shortcomings of DTDs, namely that the DTD has to describe the
> whole document, i.e. a class of languages.  What about partial
> validation/constraints?  I think it's important that child-of-DTD
> support compond documents & partial validation.  So in the terms above,
> maybe these things define sets of elements and attributes, rather
> than whole documents. -Tim

This is all true. But at the end of the day, a complete document either
conforms to a schema or it doesn't, even if only half of its elements or
attributes are verfied, and even if they are only verified piece-wise. So
a schema definitely maps a document to a truth value. (You could also say
that it defines a set of documents...the statements are equivalent)

The question is: should it also map sub-document fragments to truth
values? And what should the granularity of those fragments be? Must they
be well-formed? Should it also define a set of "XML fragments"?

I am completely comfortable with the simple notion of piece-wise
verification (e.g. ignore what you don't understand). I am not yet
comfortable with the more complex notion that a schema should be able to
map an arbitrary XML fragment to a truth-value. We would have to define
"XML fragment" so that it makes sense. We would also have to discuss the
interaction between the application and the schema language that would
give rise to this situation.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

Three things it is far better that only you should know:
How much you're paid, the schedule pad, and what is just for show

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.