Philip Nye wrote: > The <detect> element in a config file currently has > <rootElementLocalName> and <rootElementnamespace> as a detect method. > Could this be generalised to an arbitrary xpath expression?
I'm sorry to say no again. In order to be able to dynamically add a DTD to <!DOCTYPE>-less documents (e.g. a DocBook chapter intented to be used as part of a book), the detection of the document type happens well before the document is fully loaded. More precisely the detection step happens just after the start tag of the root element has been parsed.

