Re: resolving entity references

2009-06-18 Thread Michael Glavassevich
Hi Steve, The internal subset logically occurs before the external subset. If there's more than one declaration for the same entity the first takes precedence. So if the entities were declared in the internal subset they always win over duplicate declarations in the external subset. Thanks. Mic

Re: resolving entity references

2009-06-18 Thread Steve Ebersole
Thanks so much for replying (I have been fighting this stuff for over a week). Do you happen to know if the "external subset" returned from here is applied before the actual, physically-present internal subset? In other words, if I have: ]> Will the net result of injecting these value "again"

Re: resolving entity references

2009-06-18 Thread Michael Glavassevich
Hi Steve, Entities must always be declared somewhere in the DTD. Your EntityResolver only gets an opportunity to resolve the external ones (e.g. http://abc.def.ghi";>). It is possible to inject an external subset programmatically (see EntityResolver2.getExternalSubset [1]) with a similar effect t

resolving entity references

2009-06-18 Thread Steve Ebersole
Does xerces provide a *pluggable* mechanism to tell the parser the replacement text to use when it encounters an entity reference? The specific use case is attempting to control values used in docbook sources. So say you have: ... &version; &today; I would like to "inject" th