[relaxng-user] Best RNG checking tools

Robin Berjon robin.berjon at expway.fr
Tue Jan 27 15:28:44 ICT 2004


Hi David,

David Tolpin wrote:
> Robin Berjon:
>>I was wondering if this list had any advice on a good RelaxNG checking 
>>tool. So far I've fed the RNG to a validator and seen if that worked, 
>>but I'd like to know if there's anything that will look in depth at a 
>>schema and tell me if it's any good, possibly with warnings about things 
>>that might bite me down the road, that aren't considered good practice, 
>>etc. I guess I'm looking for rng-lint or something along those lines.
> 
> Relax NG is simple enough to provide few capabilities which can be dangerous.

Yes, I am aware of that, however since this is the RNG for SVG 1.2, is 
thus quite largeish, and may end up being normative I'd like to be extra 
sure :)

> A grammar can be checked for ambiguity, but an ambiguous grammar is normal
> for Relax NG.  http://www.kohsuke.org/relaxng/meter/
> 
> Another thing is checking how orthogonal a grammar is, that is, that its patterns
> have few common subexpressions.
> 
> Trang (with output to xsd) can be used to find places in a grammar that should
> be considered as candidates for simplification.

Thanks, I'll check all these options and see how it fares. Checking 
orthogonality would be quite interesting as it would likely contribute 
to reducing the size of the schema, however since it's modularised it 
might be hard to get right.

-- 
Robin Berjon


More information about the relaxng-user mailing list