Hi,
This is now updated to version 0.1.0 which provides the line and column of the last open start tag as well when tag nesting mismatches occur.
Quote:
Originally Posted by Turtle91
Maybe a tiny bit exaggerated ;)
That would be awesome Kevin, Thanks!
|
Hi Turtle91,
Attached is a quick and dirty Sigil validation plugin that will do a rough (and I mean rough!) sanity check of all xhtml files in an ebook and report back the first nesting error, mismatched attribute quotes, things like that which will prevent it from being parsed by an xml parser. It will also detect basic structure errors.
It is NOT in any way meant to replace Flightcrew or EpubCheck. But it will detect gross errors that would prevent a pure xml parser (without a dtd) from loading it.
Nicely, the gumbo html5 parser would happily eat any of this for lunch and fix it automatically on the fly.
Give it a try and see if it will cut your list of files to worry about down to a manageable level. We can improve it if anyone feels it is useful enough to want something that will do a bit more. But for real validation, you really need epubcheck.
I have attached it. Hope this helps.
KevinH