Lists Home |
Date 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
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 <firstname.lastname@example.org> 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_