cziegeler    01/06/19 06:34:21

  Modified:    src/org/apache/cocoon/xml IncludeXMLConsumer.java
  Log:
  startDTD/endDTD are not forwarded as they can only occur before the first 
startElement.
  
  Revision  Changes    Path
  1.5       +8 -8      xml-cocoon2/src/org/apache/cocoon/xml/IncludeXMLConsumer.java
  
  Index: IncludeXMLConsumer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/xml/IncludeXMLConsumer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- IncludeXMLConsumer.java   2001/05/31 17:39:11     1.4
  +++ IncludeXMLConsumer.java   2001/06/19 13:34:20     1.5
  @@ -15,11 +15,13 @@
   
   /**
    * A special purpose <code>XMLConsumer</code> used for including files.
  - * It basically ignores the <code>startDocument</code> and
  - * </code>endDocument</code> messages.
  + * It basically ignores the <code>startDocument</code>,
  + * </code>endDocument</code>, <code>startDTD</code> and <code>endDTD</code>
  + * messages.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]>Berin Loritsch</a>
  - * @version $Revision: 1.4 $ $Date: 2001/05/31 17:39:11 $
  + * @author <a href="mailto:[EMAIL PROTECTED]>Carsten Ziegeler</a>
  + * @version $Revision: 1.5 $ $Date: 2001/06/19 13:34:20 $
    */
   public class IncludeXMLConsumer extends AbstractXMLConsumer {
       final private ContentHandler contentHandler;
  @@ -85,14 +87,12 @@
       }
   
       public void startDTD(String name, String public_id, String system_id)
  -        throws SAXException {
  -        if(lexicalHandler != null)
  -            lexicalHandler.startDTD(name,public_id,system_id);
  +    throws SAXException {
  +        // Ignored
       }
   
       public void endDTD() throws SAXException {
  -        if(lexicalHandler != null)
  -            lexicalHandler.endDTD();
  +        // Ignored
       }
   
       public void startEntity(String name) throws SAXException {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to