Possibly related parsing issue Re: get validate:xsd to work like validate:dtd
Tuesday, 16 July 2013 · 2 messages · last reply 17 Jul 2013
GS
Graydon Saunders16 Jul 2013 20:49 #
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!
-- GraydonCG
Christian Grün17 Jul 2013 14:25 #
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 at gmail.com>:
Quoted text · Graydon Saunders · 44 lines
> 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery