You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/09/04 03:21:05 UTC

[DO NOT REPLY: Bug 3392] New: DeclHandler doesn't receive externalEntityDecl calls

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: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: goldman@ieee.org                                             |
+ |      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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org