An EntityResolver is correct. They aren't that hard, you only need to implement one function! An entity resolver is a Xerces object, but Xalan allows you to set them on various objects, notably the XalanTransformer if you are using that.
Note that there is a problem (as I see it anyway) with EntityResolvers in that they don't give you the base URI of a document. This means that it is impossible to correctly resolve relative URI references in external resources (document/DTD). Mark > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Per Jessen > Sent: 13 April 2003 11:03 > To: [email protected] > Subject: how to resolve a PUBLIC DTD ? > > > All, > > how should I best go about resolving a PUBLIC DTD id into e.g. a > local file ? > I've been looking at EntityResolver et al., but I'm thinking there must > be a more "obvious" (read easier :-) way ? > > I guess this is more of a Xerces problem, but if anyone's got any pointers > I'd much appreciate it. > > thanks, > Per > > -- > Per Jessen, Zurich > http://timian.jessen.ch - an analog report-formatter using XSLT > > >
