Re: preferred implementation for error reporting
Bob Foster <[email protected]> Fri, 11 Mar 2005 08:52:35 -0800
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
Daniel Veillard wrote: > First I don't expect xmllint to have very good RNG error reporting. > This is due to the state based approach of the validation, and basically > it doesn't allow to extract what really went wrong. But I would expect > jing to have as mathematically exact as possible error reporting, see > the notes from James about how he does > http://www.thaiopensource.com/relaxng/derivative.html#Error_handling I take those notes to be speculative; at least, that's not what I see in jing. However, his description inspired me to use validation as the basis for content assist in an editor and it works quite well. WRT the suggestion that the validator dump the pattern it was trying to match, you really wouldn't want to see it. During validation the choice tree can get very deep. You really want to see the "what could match next" list extracted from the tree. Bob Foster http://xmlbuddy.com/