cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/xml/util DOMBuilder.java
Date Thu, 30 Mar 2000 04:52:55 GMT
pier        00/03/29 20:52:55

  Modified:    src/org/apache/cocoon/xml/util Tag: xml-cocoon2
                        DOMBuilder.java
  Log:
  Small bug in preventing to receive notification of entity references in DTD.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +3 -2      xml-cocoon/src/org/apache/cocoon/xml/util/Attic/DOMBuilder.java
  
  Index: DOMBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/xml/util/Attic/DOMBuilder.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- DOMBuilder.java	2000/02/27 17:50:07	1.1.2.3
  +++ DOMBuilder.java	2000/03/30 04:52:54	1.1.2.4
  @@ -32,7 +32,7 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/27 17:50:07 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/03/30 04:52:54 $
    */
   public class DOMBuilder implements XMLConsumer {
       /** The document was not started */
  @@ -388,7 +388,8 @@
       public void startEntity(java.lang.String name) 
       throws SAXException {
           // This method can only called at BODY level
  -        if(state!=S_BODY) throw new SAXException("Invalid state"+location());
  +        if((state!=S_BODY)&&(state!=S_DTD))
  +            throw new SAXException("Invalid state"+location());
           // Update the current element with the entity reference node
           EntityReference eref=this.document.createEntityReference(name);
           this.current.appendChild(eref);
  
  
  

Mime
View raw message