portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/xml JetspeedXMLEntityResolver.java
Date Fri, 18 Jan 2002 13:14:36 GMT
sgala       02/01/18 05:14:36

  Modified:    src/java/org/apache/jetspeed/util SimpleTransform.java
                        SAXPIFilter.java
               src/java/org/apache/jetspeed/xml
                        JetspeedXMLEntityResolver.java
  Log:
  JAXP/TRAX conformance. Javadocs, unused import, commented imports. The only xerces dependency
remaining is inside StockQuotePortlet. We have plenty of deprecation warnings in SAXPIFilter
  
  Revision  Changes    Path
  1.19      +4 -11     jakarta-jetspeed/src/java/org/apache/jetspeed/util/SimpleTransform.java
  
  Index: SimpleTransform.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/SimpleTransform.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SimpleTransform.java	30 Nov 2001 10:53:59 -0000	1.18
  +++ SimpleTransform.java	18 Jan 2002 13:14:35 -0000	1.19
  @@ -58,13 +58,6 @@
   import java.io.*;
   import java.util.*;
   
  -//Xalan support
  -//import org.apache.xalan.xpath.xdom.XercesLiaison;
  -//import org.apache.xalan.xslt.XSLTProcessorFactory;
  -//import org.apache.xalan.xslt.XSLTInputSource;
  -//import org.apache.xalan.xslt.XSLTResultTarget;
  -//import org.apache.xalan.xslt.XSLTProcessor;
  -
   //Trax support
   import javax.xml.transform.TransformerFactory;
   import javax.xml.transform.Transformer;
  @@ -108,14 +101,14 @@
   
   /**
    * Provides a very simple mechanism to transform a document using XSLT using 
  - * one XML document and another XSL document.  This does not use Cocoon for the 
  - * transform but uses Xalan/Xerces directly.   This can be used for very 
  + * one XML document and another XSL document.  This implementation uses the TRAX API.
  + * It can be used with any TRAX transformer.   This can be used for very 
    * simple XML -> XSL processing to reduce the complexity and possibility of a 
    * runtime failure.
    *
    * @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
    * @author <a href="mailto:sgala@apache.org">Santiago Gala</a>
  - * @version $Id: SimpleTransform.java,v 1.18 2001/11/30 10:53:59 kimptoc Exp $
  + * @version $Id: SimpleTransform.java,v 1.19 2002/01/18 13:14:35 sgala Exp $
    */
   public class SimpleTransform
   {
  @@ -305,7 +298,7 @@
       }
       
       /**
  -     * Used internally to handle doing Xalan transfers directly.
  +     * Used internally to handle doing XSLT transformations directly.
        */
       public static String transform( InputSource content, 
                                       InputSource stylesheet,
  
  
  
  1.5       +2 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/util/SAXPIFilter.java
  
  Index: SAXPIFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/SAXPIFilter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXPIFilter.java	7 Mar 2001 06:50:00 -0000	1.4
  +++ SAXPIFilter.java	18 Jan 2002 13:14:35 -0000	1.5
  @@ -67,12 +67,12 @@
   
   /**
   This class is used to either strip and/or insert PIs in a XML document.
  -It currently relies on Xerces for its operation and outputs text to an
  +It uses SAX-1 API and outputs text to an
   output stream.
   WARNING: This behavior will be modified in the future.
   
   @author <A HREF="mailto:raphael@apache.org">RaphaŽl Luta</A>
  -@version $Id: SAXPIFilter.java,v 1.4 2001/03/07 06:50:00 taylor Exp $
  +@version $Id: SAXPIFilter.java,v 1.5 2002/01/18 13:14:35 sgala Exp $
   */
   public class SAXPIFilter extends HandlerBase {
   
  
  
  
  1.5       +2 -4      jakarta-jetspeed/src/java/org/apache/jetspeed/xml/JetspeedXMLEntityResolver.java
  
  Index: JetspeedXMLEntityResolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/xml/JetspeedXMLEntityResolver.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JetspeedXMLEntityResolver.java	13 Sep 2001 13:53:03 -0000	1.4
  +++ JetspeedXMLEntityResolver.java	18 Jan 2002 13:14:35 -0000	1.5
  @@ -57,9 +57,7 @@
   import java.io.*;
   //Jetspeed cache
   import org.apache.jetspeed.cache.disk.*;
  -//xerces support
  -import org.apache.xerces.parsers.*;
  -//XML stuff
  +
   import org.w3c.dom.*;
   import org.xml.sax.*;
   
  @@ -72,7 +70,7 @@
    *
    *@author <A HREF="mailto:christian.sell@netcologne.de">Christian Sell</A>
    *@author <A HREF="mailto:sgala@hisitech.com">Santiago Gala</A>
  - *@version $Id: JetspeedXMLEntityResolver.java,v 1.4 2001/09/13 13:53:03 sgala Exp $ 
  + *@version $Id: JetspeedXMLEntityResolver.java,v 1.5 2002/01/18 13:14:35 sgala Exp $ 
    *
    **/
   public class JetspeedXMLEntityResolver implements EntityResolver
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message