You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2001/01/25 20:24:17 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/serialize SerializerToXML.java

mmidy       01/01/25 11:24:17

  Modified:    java/src/org/apache/xalan/serialize SerializerToXML.java
  Log:
  Fix problem with DTD and Identity transformations. Handle the startDTD event and system and public doctype.
  
  Revision  Changes    Path
  1.2       +8 -4      xml-xalan/java/src/org/apache/xalan/serialize/SerializerToXML.java
  
  Index: SerializerToXML.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/SerializerToXML.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SerializerToXML.java	2001/01/02 03:29:10	1.1
  +++ SerializerToXML.java	2001/01/25 19:24:11	1.2
  @@ -648,8 +648,15 @@
     public void startDTD(String name, String publicId, String systemId)
             throws org.xml.sax.SAXException
     {
  +    m_doctypeSystem = systemId;
  +    m_doctypePublic = publicId;
   
  -    // Do nothing for now.
  +    if ((true == m_needToOutputDocTypeDecl) && (null != m_doctypeSystem))
  +    {
  +      outputDocTypeDecl(name);
  +    }
  +
  +    m_needToOutputDocTypeDecl = false;
     }
   
     /**
  @@ -1816,9 +1823,6 @@
      */
     public void startEntity(String name) throws org.xml.sax.SAXException
     {
  -
  -    entityReference(name);
  -
       m_inEntityRef = true;
     }