[relaxng-user] rng analysis

David Rosenborg darolst at pantor.com
Mon May 3 20:03:47 ICT 2004


Dave Pawson wrote:

> ? What's the definition of 'simplified' please?
>
Simplification is a transformation defined in the RELAX NG
specification: http://relaxng.org/spec-20011203.html#simplification
The simple syntax (not to be confused with the compact syntax) is a subset
of the full syntax which you normally author schemas in.
The semantics of RELAX NG validation are entirely described
in terms of the simple syntax.

Simply put, the simplification transformation flattens a schema into a more
DTD like structure where the only remaining top level constructs are 
definitions
containing a single element pattern. Additionally, there is a single 
start pattern. All other
named patterns, includes, overrides, combination attributes and nested
grammars go away. Also, inherited attributes are resolved so you don't 
have to
look upwards to determine the value of  for example a ns attribute.

So, if you want to process a schema and don't care how the originial
schema was structured and modularized, the simplified version
is just much simpler to use.

>> relaxng.org has links to tools that can perform the simplification 
>> step (e.g. rng2srng).
>
> Mmm. Not seen that David.
>   Thanks, I'll take a look.
>   What's its purpose?

rng2srng is a tool which will perform the simplification transformation 
described above.

Cheers,

David



More information about the relaxng-user mailing list