[Sax-devel] Re: RFE #434478 (SAX2 and resolving system IDs)
Brought to you by:
dmegginson
From: Norman W. <nd...@nw...> - 2001-11-07 15:09:28
|
/ David Brownell <da...@pa...> was heard to say: | public interface org.xml.sax.ext.EntityResolver2 | { | InputSource resolveEntity ( | String name, // "[dtd]", "%foo", "bar" I don't understand what '[dtd]' and '%foo' mean in this comment. I would expect the name to always be a simple name. <!ENTITY general SYSTEM "foo"> ==> 'general' <!ENTITY % parameter SYSTEM "foo"> ==> parameter' <!DOCTYPE book SYSTEM "foo"> ==> 'book' | String publicId, // normalized (of course!) | String baseURI, // goes first: resolve (base, relative) | String systemId | ) throws SAXException, IOException; | } | | Plus I've got a question. I'd tend towards making that extend | the existing EntityResolver, and using the setEntityResolver() | method rather than defining a new property. Also, defining | a new feature flag ("use-resolver2") so apps can check whether | a given parser supports this new interface. | | My question: does that way of packaging this interface seem | OK, or does it deserve some change? That sounds OK to me. Be seeing you, norm -- Norman Walsh <nd...@nw...> | The First Amendment is often http://nwalsh.com/ | inconvenient. But that is besides the | point. Inconvenience does not absolve | the government of its obligation to | tolerate speech.--Justice Anthony | Kennedy, in 91-155 |