Re: Best RNG checking tools
David Tolpin <[email protected]>
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
Robin Berjon: > Hi, > > 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. Robin, Relax NG is simple enough to provide few capabilities which can be dangerous. A conformant processor that checks for all restrictions, such as Jing, should be enough to write good grammars. 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. David Tolpin http://davidashen.net/