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

Re: Validate **against** a schema OR validate **with** a schem

  • From: nico <ndebeiss@g...>
  • To: xml-dev@l...
  • Date: Fri, 23 Jan 2009 11:08:03 +0100

Re:  Validate **against** a schema OR validate **with** a schem

Sorry to interrupt for a question which may have been answered, are there really validation APIs which do that "augmentation" of adding default values to a XML instance ??

Nico
http://debeissat.nicolas.free.fr/

2009/1/23 Michael Kay <mike@s...>
> > Defaulting values came from SGML days and DTDs..  So it's
> been around
> > for a while.  Many folks have wanted the validation and
> augmentation
> > steps separate though no real progress on that.
>
> Adding default information and other properties is a very
> respectable thing for a schema language to do, IMHO.
>

I think that the database community has actually done a better job in this
area than the SGML/XML community.

In a database schema, you typically distinguish:

(a) structural constraints (which columns go in which tables, the equivalent
of our grammars)

(b) integrity constraints (the equivalent of our assertions, as in
Schematron or XSD 1.1)

(c) view definitions (subsetted or augmented or otherwise transformed
information that can be exposed to an application)

A key point about view definitions (or subschemas, as they were called
before the relationalists took over) is that you can have many of them, so
different applications can see different views. We don't seem to have
grasped that idea, though we struggle with the consequences. And subsetting
is at least as important as augmenting. Another point which SQL got right is
that you can use the same language to define queries as to define views, so
once you have a working query you can treat its result as a view. This of
course demands closure, that is, the output of a query/view uses the
original data model, which relates back to the point Rick made about the
PSVI being expressible in XML.

(Once again, Roger has triggered an interesting discussion by asking what
appeared to be a really trivial question!)

Michael Kay
http://www.saxonica.com/


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[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.