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

Re: Enlightenment via avoiding the T-word

  • From: Ronald Bourret <rpbourret@r...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Thu, 30 Aug 2001 11:08:14 -0700

Re: Enlightenment via avoiding the T-word
"Henry S. Thompson" wrote:
> 
> Ronald Bourret <rpbourret@r...> writes:
> > >From my reading of the schema spec, this is what a validator does. My
> > point is that it would be nice if the PSVI was clearly factored so I
> > could write a processor to just add type information without performing
> > validation. This would be much cheaper and would be useful in
> > applications where I trusted the source of my documents.
> 
> What factoring of the PSVI would you like that isn't already there
> implicitly?  The W3C XML Schema REC defines a number of properties for
> use by conformant schema-validators.  It is already open to you to
> make provide a subset of those properties of your own choosing in the
> output of some non-validating processor that you write.  If a
> downstream app needs only your properties, then it can run either on
> top of a conformant schema-validator, or on top of your processor.

It is true that I can take what I want from the infoset, but that's not
a good way to build mass-market software. Assuming one group of people
builds processors and another group of people build
processor-independent applications on top of those processors, the
application writers' job is made much easier by factoring.

This is because factoring means the application knows it can expect a
certain level of functionality, rather than continually having to ask,
"Do you support this?", which is the case with a continuum of
functionality. The DOM and ODBC drivers factor things this way to quite
good effect.

Without looking at every single PSVI contribution, a quick scan of
section C.2 might break them into the following sets:

1) Typing:
Attribute Declaration
Element Declaration

2) Defaults:
Attribute Default Value
Element Default Value

3) Validation:
Assessement Outcome (Attribute)
Validation Failure (Attribute)
Attribute Validated by Type
Validation Failure (Complex Type)
Validation Failure (Element)
Element Validated by Type
Assessment Outcome (Element)
Validated with Notation
Validation Failure (Simple Type)

4) Cross-referencing:
Identity-constraint Table
ID/IDREF Table

5) Schema Information
Schema Information

-- 
Ronald Bourret
XML, Databases, and Schemas
http://www.rpbourret.com
Speaker, Geek Cruises' XML Excursion '02

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.