costin      01/03/12 14:20:10

  Modified:    java/src/org/apache/xalan/lib/sql ExtensionError.java
  Log:
  Removed ( commented out ) dump() method and the imports in ExtensionError.
  
  So far the method doesn't seem to be used ( no warning in the compile ).
  
  The problem is that this method is breaking the build with crimson ( since
  it uses xerces-specific classes ). It is possible to implement it on top
  of the serialization classes that are part of xalan - if someone needs the
  method I'll try to port it.
  
  Revision  Changes    Path
  1.4       +29 -29    
xml-xalan/java/src/org/apache/xalan/lib/sql/ExtensionError.java
  
  Index: ExtensionError.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/lib/sql/ExtensionError.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExtensionError.java       2001/03/12 02:04:06     1.3
  +++ ExtensionError.java       2001/03/12 22:20:07     1.4
  @@ -75,9 +75,9 @@
   import org.w3c.dom.traversal.NodeIterator;
   
   // Imported Serializer classes
  -import org.apache.xml.serialize.OutputFormat;
  -import org.apache.xml.serialize.Serializer;
  -import org.apache.xml.serialize.XMLSerializer;
  +//import org.apache.xml.serialize.OutputFormat;
  +//import org.apache.xml.serialize.Serializer;
  +//import org.apache.xml.serialize.XMLSerializer;
   import java.io.StringWriter;
   
   import java.io.ByteArrayOutputStream;
  @@ -271,33 +271,33 @@
     {
     }
   
  -  public void dump()
  -  {
  +//   public void dump()
  +//   {
   
  -    try
  -    {
  -      //Serialize DOM
  -      OutputFormat           format  = new OutputFormat();
  -      //Writer will be a String
  -      StringWriter           stringOut = new StringWriter();
  -
  -      XMLSerializer          serial = new XMLSerializer( stringOut, format );
  -
  -      // As a DOM Serializer
  -      serial.asDOMSerializer();
  -
  -      Element e = m_doc.getDocumentElement();
  -      serial.serialize(e);
  -      System.out.println("Extension Error:");
  -      String display = stringOut.toString();
  -      System.out.println( display );
  -    }
  -    catch(Exception e)
  -    {
  -      // Empty
  -    }
  +//     try
  +//     {
  +//       //Serialize DOM
  +//       OutputFormat                format  = new OutputFormat();
  +//       //Writer will be a String
  +//       StringWriter                stringOut = new StringWriter();
  +
  +//       XMLSerializer               serial = new XMLSerializer( stringOut, 
format );
  +
  +//       // As a DOM Serializer
  +//       serial.asDOMSerializer();
  +
  +//       Element e = m_doc.getDocumentElement();
  +//       serial.serialize(e);
  +//       System.out.println("Extension Error:");
  +//       String display = stringOut.toString();
  +//       System.out.println( display );
  +//     }
  +//     catch(Exception e)
  +//     {
  +//       // Empty
  +//     }
   
  -  }
  +//   }
   
     public Node getCurrentNode()
     {
  @@ -360,4 +360,4 @@
     public void setLast(int last)
     {
     }
  -}
  \ No newline at end of file
  +}
  
  
  

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

Reply via email to