Hi Graydon,
thanks for the observation; the bug has been fixed in the latest stable snapshot [1].
Please note that the internal parser does not correctly handle all DTD intricacies. In this case, just switch to the default parser (intparse off).
Best, Christian
[1] http://files.basex.org/releases/latest/ ___________________________
2013/7/16 Graydon Saunders graydonish@gmail.com:
I've attached a zip file with a trivial DTD and a eleven copies of a trivial XML file that follows that DTD.
If I try to create a db from this content using BaseX77-20130716.145338.zip
and try to skip corrupt files (which is what I need to do on the real content; the example doesn't have any) and parse the content against entities and the DTD (something else I need to do on the real content due to a purgatory of fixed attributes), it doesn't work.
SKIP INTERNAL DTDs & Collection? CORRUPT PARSER ENTITIES
N N N YES Y N N YES
N Y N YES Y Y N YES
N N Y YES Y N Y NO! Fails! (skips all)
N Y Y NO! Fails! "tiny.dtd" (Line 1): No input found Y Y Y NO! Fails as the YNY case, skipping all input files.
The attached example zip has the dtd and the files and the error message as well as these results.
I'd expect all of these cases to work.
Thanks! -- Graydon
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk