OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] DTDs, W3C Schemas, RELAX NG, Schematron?

[ Lists Home | Date Index | Thread Index ]

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.


John Cowan <jcowan@reutershealth.com>     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_


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS