You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Timm, Sean" <ST...@mailgo.com> on 2000/01/06 01:43:22 UTC

XMLParserLiaisonDefault.java Update

Here's the final file I had to change to compile with the latest Xerces
Serializer stuff.

P.S. Xerces-J 1.0.1 has been released.

- Sean T.

Index: XMLParserLiaisonDefault.java
===================================================================
RCS file:
/home/cvspublic/xml-xalan/src/org/apache/xalan/xpath/xml/XMLParserLiaisonDef
ault.java,v
retrieving revision 1.15
diff -c -r1.15 XMLParserLiaisonDefault.java
*** XMLParserLiaisonDefault.java	1999/12/16 06:10:45	1.15
--- XMLParserLiaisonDefault.java	2000/01/06 00:40:59
***************
*** 65,71 ****
  import org.apache.xalan.xpath.xml.XSLMessages;
  import org.apache.xalan.xpath.res.XPATHErrorResources;
  import org.apache.xml.serialize.OutputFormat;
! import org.apache.xml.serialize.Serializer;
  
  /**
   * This class is the default XMLParserLiaison for the XSL Processor.
--- 65,71 ----
  import org.apache.xalan.xpath.xml.XSLMessages;
  import org.apache.xalan.xpath.res.XPATHErrorResources;
  import org.apache.xml.serialize.OutputFormat;
! import org.apache.xml.serialize.XMLSerializer;
  
  /**
   * This class is the default XMLParserLiaison for the XSL Processor.
***************
*** 1509,1515 ****
      formatter.setStandalone(standalone);
      formatter.setCDataElements(cdataSectionElems);
      
!     Serializer.serialize(doc, writer, formatter);
    } 
     
    /**
--- 1509,1516 ----
      formatter.setStandalone(standalone);
      formatter.setCDataElements(cdataSectionElems);
      
!     XMLSerializer serializer = new XMLSerializer(writer, formatter);
!     serializer.serialize(doc);
    } 
     
    /**
***************
*** 1540,1546 ****
      formatter.setStandalone(standalone);
      formatter.setCDataElements(cdataSectionElems);
      
!     Serializer.serialize(doc, ostream, formatter);
    } 
  
    //==========================================================
--- 1541,1548 ----
      formatter.setStandalone(standalone);
      formatter.setCDataElements(cdataSectionElems);
      
!     XMLSerializer serializer = new XMLSerializer(ostream, formatter);
!     serializer.serialize(doc);
    } 
  
    //==========================================================