PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3392 *** shadow/3392 Mon Sep 3 18:21:05 2001 --- shadow/3392.tmp.18422 Mon Sep 3 18:21:05 2001 *************** *** 0 **** --- 1,30 ---- + +============================================================================+ + | DeclHandler doesn't receive externalEntityDecl calls | + +----------------------------------------------------------------------------+ + | Bug #: 3392 Product: Xerces2-J | + | Status: NEW Version: 2.0.0 [beta 2] | + | Resolution: Platform: PC | + | Severity: Blocker OS/Version: Windows NT/2K | + | Priority: Other Component: SAX | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I'm writing an application that implements DeclHandler and expects to receive + callbacks for internal and extern entities as the DTD is parsed. However, I'm + only receiving calls for internal entities. + + I confirmed in the debugger that, while parsing a DTD, + XMLDTDValidator.externalEntityDecl() is getting called and passing the call on + to the fDTDHandler, which is an instance of SAXParser. + + That instance of SAXParser is primarly implemented by AbstractSAXParser, + notably internalEntityDecl(...) and externalEntityDecl(...). But, it turns out + that the version of externalEntityDecl(...) provided by AbstractSAXParser has + only 3 arguments, whereas the correct version given by + AbstractXMLDocumentParser has 4. Thus, the calls for external entities fall + through to AbstractXMLDocumentParser, which discards them. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
