You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Hugo Ferreira <hm...@inescporto.pt> on 2002/03/12 09:38:44 UTC
Newbie: resolveEntity always passes null arguments
Hi,
I have recently downloaded the Xalan library and have encountered a small
yet
difficult problem. I have based my class on the Dom2Dom example. I changed
this example to pass a stream instead of a file name. When I parse the xml
file,
the DTD entity is not found (if no DOCTYPE is used in the XML file, all is
ok).
After searching the archives I implemented an EntityResolver class.
This class is used by the parser after I do a:
DTDResolver er = new DTDResolver( "xsl" );
DocumentBuilder ...
dBuilder.setEntityResolver( er );
When executing the class, the callback method is invoked, but the
parameters are always null.
Can anyone tell me if in fact this is a known problem/feature or
if I am attempting to do the impossible.
TIA.
Hugo Ferreira.