custom resolver / XML catalogs

Tuesday, 27 July 2010 · 2 messages
IL
Imsieke, Gerrit, le-tex27 Jul 2010 12:02 #
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
CG
Christian Grün27 Jul 2010 16:04 #
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
Quoted text · le-tex · 23 lines
On Tue, Jul 27, 2010 at 12:02 PM, Imsieke, Gerrit, le-tex <gerrit.imsieke at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery