>   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.
> --- 27,44 ----
>   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.
> ! 
> ! ------- Additional Comments From [EMAIL PROTECTED]  2001-09-04 00:24 
-------
> ! u have rightly tracked down the problem. I feel somehow it has been left.
> ! A change in 
> ! AbstractSAXParser:externalEntityDecl(String name, String publicId,
> ! String systemId)  
> ! to
> ! AbstractSAXParser:externalEntityDecl(String name, String publicId,
> ! String systemId,String baseSystemId)  
> ! should be able to pass this call to application.i will post the cvs diff on 

slight modification done in AbstractSAXParser, externalEntityDecl calls weren't
getting through to  the application.
CVS diff is attatched with this mail.


Neeraj Bajaj
---------------------
Sun Microsystems, inc.
Ph.91-80-2298989 x87425.

Index: AbstractSAXParser.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/parsers/AbstractSAXParser.java,v
retrieving revision 1.2
diff -u -r1.2 AbstractSAXParser.java
--- AbstractSAXParser.java      2001/08/23 00:35:31     1.2
+++ AbstractSAXParser.java      2001/09/04 07:00:30
@@ -800,12 +800,13 @@
      * @param publicId The public identifier of the entity or null if the
      *                 the entity was specified with SYSTEM.
      * @param systemId The system identifier of the entity.
+     * @param baseSystemId The baseSystem identifier of the entity.
      *
      * @throws XNIException Thrown by handler to signal an error.
      * @throws SAXException Thrown by SAX handler to signal an error.
      */
     public void externalEntityDecl(String name, String publicId,
-                                   String systemId) throws XNIException {
+                                   String systemId, String baseSystemId) throws 
+XNIException {
 
         try {
             // SAX2 extension
@@ -817,7 +818,7 @@
             throw new XNIException(e);
         }
 
-    } // externalEntityDecl(String,String,String)
+    } // externalEntityDecl(String,String,String,String)
 
     /**
      * An unparsed entity declaration.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to