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

Re: DTDs, W3C Schemas, RELAX NG, Schematron?


Re:  DTDs
Don Box scripsit:

> Specifically, XML Schema uses named types to implicitly convey intention
> as well as structure (a la Java, C++, C#). Anonymous types are 2nd class
> citizens in XML Schema (they're type-equivalent with nothing).
> 
> Relax NG has a much looser model (a la Perl) in which two things are
> compatible if they share structure independent of a common, named type
> definition.

Another way to put this, I think, is that while RNG has only one
kind of validation, namely schema-instance validation (the schema
determines what part of the instance is valid), WXS has two more:
instance-instance validation, where parts of the instance must be
mutually valid as specified by the schema (identity constraints, e.g.);
and schema-schema validation, where the rules of WXS determine
whether parts of the schema are mutually valid (e.g. the rules for
substitution groups, which just looks like choice from an RNG viewpoint).

> Each approach appeals to its own community of users in very deep ways.

Evidently.

-- 
John Cowan <jcowan@r...>     http://www.reutershealth.com
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, _LOTR:FOTR_

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.