From an EntityResolver, I can't see anyway of getting the base URI of the URI that is passed in for resolution. In some instances I can store it (e.g. I can do this for the document), but if the document references a DTD which has imports, then I can't sensibly resolve these. Is this simply an oversight?
I guess the reason is because the SAX specs don't have that parameter in the signature of the callback function; but SAX 2.0.1 has it. Unfortunately, it's still listed at http://xml.apache.org/xerces-c/releases_plan.html as not having a volunteer assigned....
We worked around this problem by adding the argument to the callback; but you should be able to get around this problem also by calling getScanner().getLastExtLocation() from within the resolver.
Alberto
It looks like a reasonably simple change to make, so I am happy to do this unless I've missed some other way of getting the information I need.
Thanks,
Mark
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
