Dear Team,
We need to deal with XML that contains a DOCTYPE declaration and named entities. Unfortunately the DTD sometimes isn't available at the system location (e.g., "E:\mydoc.dtd") given in each document's declaration. Is it possible to specify a custom resolver such as org.apache.xml.resolver.tools.CatalogResolver so that the DTD can be found by virtue of a catalog, and consequently the entities can be resolved?
If catalogs are not available, we'll have to resolve the entities (and remove the DOCTYPE declaration) in a preprocessing step using xmllint or saxon. This is acceptable, we just need to know how to proceed.
Many thanks,
Gerrit
Dear Gerrit,
currently, there is no such solution available in BaseX (apart from ignoring all DTDs and, consequently, entities during parsing, which probably isn't the way to go). The CatalogResolver approach, however, is a useful hint, which I've added to our todo list.
We'll let you know as soon as the feature is available.
Best, Christian
On Tue, Jul 27, 2010 at 12:02 PM, Imsieke, Gerrit, le-tex gerrit.imsieke@le-tex.de wrote:
Dear Team,
We need to deal with XML that contains a DOCTYPE declaration and named entities. Unfortunately the DTD sometimes isn't available at the system location (e.g., "E:\mydoc.dtd") given in each document's declaration. Is it possible to specify a custom resolver such as org.apache.xml.resolver.tools.CatalogResolver so that the DTD can be found by virtue of a catalog, and consequently the entities can be resolved?
If catalogs are not available, we'll have to resolve the entities (and remove the DOCTYPE declaration) in a preprocessing step using xmllint or saxon. This is acceptable, we just need to know how to proceed.
Many thanks,
Gerrit _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de