Re: [Sax-devel] Re: RFE #434478 (SAX2 and resolving system IDs)
Brought to you by:
dmegginson
From: Rob L. <ro...@el...> - 2001-11-08 12:11:14
|
> > I want entity resolvers to *be able to* infer external subsets > > (which, yes, may contain additional DTD declarations) given a > > document type name (aka, the root element type name). That really > > isn't that different from inferring an external subset at location > > X when the system id is Y (which is what catalogs allow you to do). > > I think it's significantly different, since it's inferring something that's > not part of the literal source text. That's fundamentally different from > the current role of an EntityResolver: "hooking" a name lookup that's > clearly part of that literal text. BUT, see this draft: > > http://sax.sourceforge.net/apidoc/org/xml/sax/ext/EntityResolver2.html > My first impression is that I like it very much. Two minor comments: 1) I agree with Norm that [DOCTYPE-name] is preferable to '[dtd]'. I realise that this is inconsistent with startEntity(), but I don't like carrying forward an unhelpful practice into new interfaces 2) As I mentioned in an earlier post, I would prefer EntityResolver2 to be a new interface that is not based on EntityResolver. ~Rob |